How to set width of a div in percent in JavaScript?
Is it possible to set the height/width of an element in percent using JavaScript or jQuery? ...
Is it possible to set the height/width of an element in percent using JavaScript or jQuery? ...
Hi all, I am receiving a different type of error in my application. In my project most of the functionality are in ajax. Now my prob is if i "ALERT" something i am receiving the output. Else i am not. I am totally confused with this issue and don't have any idea to solve it. What will be the solution? Any answers will be helpful and ...
Hi All, i am new to the web development environment, having came from a unix/c environment. i've been recently asked to create a web app, which i thought would require postgresql, java/j2ee, and javascript for the client interface. as i had wanted a nicer gui, i've been reading up on extjs, which looks really nice to me. a colleague m...
<ul class="leftbutton" > <li id="menu-selected">Sample 1</li> <li>Sample 2</li> <li>Sample 3</li> <li>Sample 4</li> <li>Sample 5</li> </ul> I want to get the text of the li item which the id="menu-selected". Right now I am doing something like document.getElementB...
Hi all! You know how those packed js files look like, right? eval(function(p,a,c,k,e,d){ ... } ('obfuscated-string'.split('|'),0,{})) It just so happens to be that i have to tweak some large legacy code that looks like that and i want to find a way to turn this into a more readable version. If that's not possible, can i at least get ...
Hi, anyway to see in IE 8 Developer Tools the list of the .js associated with a page? In the same way as in Firebug. Regards Javi ...
Hello, I have a number of iframes calling a function in my main page. Is there a way to find out the ID of the iframe which called the function? There are all part of same domain so that should not be an issue. Thank you for your time. ...
Hi All, How to include loader image without usng AJAX controls like Scriptmanager, UpdateProgerss. Note: Page Getting Load. Geetha ...
I use the below code to write code to query a web method in a specified interval. now in the this.Poll function I have to do this.tmo = setTimeout(this.strInstanceName + ".Poll()", this.iInterval); instead of this.tmo = setTimeout(this.Poll(), this.iInterval); because IE looses the this pointer after setTimeout So I have to pass...
Permission denied for <http://example.com> to get property HTMLDocument.body from http://www.example.com. var c = parseFloat(cf.contentDocument.body.offsetHeight) + 30; ...
Hi, I have two divs. I would like to move/populate the text from div id one to div id two using an onclick event. I am wondering how to do this? and also whether mootools can be used to accomplish the task or whether simple javascript is only necessary? <script type="text/javascript" src="js/mootools.js"></script> <script type="text/j...
At a website, I found the following code to make a jQuery plugin: (function($){ // Our code here... })(jQuery); I don't understand how the code above works. What I understand is that the code executes immediately because the very last () in function(){}(). So the entire code says that is an anonymous function that is run immediately...
When I look at gmail on my mobile web browser the password textbox hashes the characters as I type so I can see the actual input as I type before is hashed with an asterisk. So as I enter it becomes, P --> *a --> **s etc.. How is this done? I presume its javascript? If somone can point me in the right direction that would be great. ...
when I am trying to write javascript in xaml page itself it is showing some error. <script type="javascript"> .... </script> can we write javascript function for form validation in silverlight .xaml file ? ...
Trying to work through my javascript book I am referencing to learn the language and got stuck on looping through siblings of a specific row. W3schools and W3 didnt have what i was looking for. Below is a function walk-through... It reads: Create the countRecords() function. The purpose of this function is to count the number of visibl...
I am newbie. many of javascript code start with <!-- <script type="text/javascript"> <!-- and finish with //--> //--> </script> I think the reason is for compatibility. But I cannot find the clue in any books. even I cannot find anything with google. ...
Hi, Reqs: I want to make an external page with a 'Become a Fan'-button. I want users to login to facebook once they open the page (this is because of other features in the site) So I call FB.Connect.requireSession once the page loads, and put a <fb:fan></fb:fan> control on the page. Then when I open the page I see the 'Connect with...
I need to put a javascript variable as image source. That is my image tag should be in this format here i am adding my script document.getElementById("pricefilter").innerHTML ='<img src="variablename/spinner.gif" title="Loading..." alt="Loading...">'; The variablename carries my image path. How can I put this in double quates. Plea...
So I am creating a fading gallery and am a bit of a noob to javascript (but not to programming). I have no idea what is wrong though. Here's the function in question: /* */ function show_next () { // Hide current $('.s_gallery_images li.s_current').fadeTo(200, .2); $('.s_gallery_images li.s_cu...
I have the following h:selectOneRadio: <h:selectOneRadio id="#{prefix}_rating" value="#{examinationPanel.tempResult}" > <f:selectItems value="#{examinationPanel.options}"></f:selectItems> </h:selectOneRadio> And then the backing bean is loading the options based on some userpreferences: public List<SelectItem> loadOptions (Set<Result...