Faraz Ka

Ranch Hand
+ Follow
since Jun 01, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Faraz Ka

Hello,

I am new to RegEx and have a requirement as follows
The String is of the following type




Here, I need to find ONE RegEx that matches all the above strings. Next, I have to replace the VARIABLE string inside the quotes i.e. World or Universe with the string of my choice
Please suggest how to write a RegEx to identify above string pattern and to replace the variable which is inside the quotes.

Thanks,
Faraz
Hello,

I am new to SVNKit. From where can I get the sample code for learning the use of SVNKit API to commit the assets via JAVA Code.
Any pointers to the sample code will be helpful

Thanks,
FKA
Hello,

I am new to MongoDB. In my document there is one HashMap entry ( projection)
I want to write a query so that it returns me ONLY the HashMap entry ( projection) from a particular document and not the whole document so that I can manipulate the HashMap object in my Java code.

Thanks,
FKA



4 years ago
Its a typo while writing the sample code here in coderanch. Read all as MI (two letters).
Any solution?

Thanks,
FKA
Thanks Bibeault,

Here is the sample code. I am not able to reset the entries in function2 while in function 1 I am able to set it correctly.




Please suggest how to fix this issue.

Thanks,
FKA
Hello,

I have a JS file and in that I defined an object

obj = {};
and set field as
obj.f1 = [];
In one of the function in the same JS file I am setting the entires in obj.f1 and it is getting updated fine.
Next, in the same file, I have written another function and their I am accessing the obj.f1 and it is showing empty.
This I am not able to figure out why? Any clue as what wrong I am doing here and how to get the entries of obj.f1 in second function.

Thanks,
FKA
Hello,

I need to understand the difference between target vs originalTarget vs explicitOriginalTarget.

Regards,
FKA
Point well taken. BUT in javascript we have document.activeElement and it returns the object which is active.
For instance, in a pop up window if a button is active ( say Cancel button) then it returns that button object.

Thinking on similar lines don't we have a similar function which reads the active pop up window which is on top and returns the whole of window as an object?
May be my thinking is wrong as I am new to DOM scripting but please correct me in case I am wrong.

Thanks,
FKA
Thanks Bibeault!
BUT what if the information of idOfPopUpParent is not present before hand?
Is there any way to try via active window or top window etc.
If yes, then please suggest as my JS is a generic function which might not have the information of idOfPopUpParent in advance.

Thanks,
FKA
Hello,

I my html page I am using document.getElementByid("*"); to get all the elements but in one scenario there is a button click which opens a pop up window.
Now, I need to get only the elements in the popup window only and not the elements which are behind the pop up window.

Please suggest how to do that.

Thanks,
FKA
Also in the html when a button is clicked and the pop up comes, then can we say that at the moment the z Index of all the elements in pop up is greater than anyone lying ( inactive) behind that?
Hello,

I have a requirement where i am given a set of lets say 10 DOM elements and I have to find which one is on top based on the z-Index
Challenge is the code has to be very optimized and the looping should be the the minimum.
So, how to approach this problem?

1. If a button is inside a div ( which contains z-Index of 2) and there is one outer div with zIndex : -1 then what is the absolute value of z-Index for that button.
2. Also how to know if the element has z-Index?

Thanks,
Faraz
Hello all,

I have an event listener on the full main document and its working fine but the requirement is there is a disable pop up which comes after clicking the button.
The requirement is when the user performs any click/double click on the disable pop up then no event should get registered.

Which means there is a small div inside document where the listener should not work.
Any way to achieve this?

Thanks,
FKA
Thanks so much for your answers. It did help me!

Thanks,
FKA