I'm very new to the AJAX and Javascript world and I'm trying to implement Scott Hanselman's example of form submission to update part of a page. I have copied his example almost word-for-word and I can't seem to get it to work. When I click the submit button the controller action is called successfully but the result is rendered in the b...
is it possible to make a mouse click polyline wherein you can set the coordinates using your mouse that may tell that this closed in polyline area is what I selected?
...
Google Maps just made the API exactly like the real thing. So now I want the map to display the hybrid map by default, I looked all over Google's Documentation, but I can't seem to find a way to do this.
Thanks in advance!
...
hi there,
does anyone know how to make live javascript time running..
i have this php code
$expiredate = date('d m Y G:i:s', $rdate1);
$f_ex_date = explode(" ", $expiredate);
$f_ex_time = explode(":", $expiredate);
$_endDate = mktime($f_ex_date[0],$f_ex_date[1],$f_ex_date[2],$f_ex_date[1],$f_ex_date[0],$f_ex_date[2]);...
How can I place document.location.search into a variable w/o the '?' Is there a simple regex, or can I just ignore the first character?
...
This is a simple question that hopefully has a similar simple answer to it as well.
If the id of a div selector is stored in a string, how can I select the div object dynamically.
This is what I currently do, and I am convinced that jQuery must have its own way of doing this:
<div id="boo">Some content...</div>
var divName = 'boo';
v...
Hey,
Say my javascript scripts aren't embedded in html/xml... I want to write a small library of helper functions to use in my scripts. Obviously there has to be an "#include" or "require" keyword in javascript, but I can't find any. Anything I could with Google relies on the code being part of html/xml, which doesn't help in my case.
...
I am trying to create a timeline player.
I have a div object which moves from one side of the screen to another (i.e. using animate() to change the 'left' position of the div). Lets assume this animation takes 5 seconds to happen.
I would like that a jQuery Slider keeps incrementing bit by bit alongside the animation. The slider must t...
I want to use the jQuery hover method for rollovers above a base area image map that incorporates numerous odd shapes, so that rolling over each exact shape triggers an image swap, as well as an .innerhtml swap in a separate text block. I started with a placeholder “zero” image that’s completely transparent, then swap to a png above the ...
Hi
i get the value in javascript from text box. but, value is not coming after white space
For example,
job : <input type="text" name="txtJob" value="software engineer">
if i take this value in javascript, i am getting only "software". i am using script like this:
var jobValue = document.getElementById('txtJob').value
how to ge...
Hi all,
I have a big problem that makes me go crazy ...
I want to add into a popup window a "Ext Dependency Builder" component ... using the components here:
"http://extjs.com/deploy/ext/docs/index.html"
dialog = new Ext.LayoutDialog("name1", {layout parameters})
where "name1" is the name of a div on my main jsp page.
I need to add a...
The javascript jQuery code below works, except I would like to add 2 features to the button's state.
When a user clicks one of the buttons, the other button that was not clicked gets a new class (look).
Both button's state should change to unclickable.
[div id="1" class="__button_image"] [/div]
[div id="2" class="__button_image"] [...
Hello, I'm wondering if the following can be done.
I have a list of 'expenses' that I'm displaying in a table. 4 columns - amount, date, where, and what.
I was thinking I'd like to make each clickable via jQuery which would expand that particular expense, inline, to show a more detailed description.
What I'm trying to do is, on click...
I know the article but it is not exactly what I want.
How can you make an image previewer similar as at the website?
...
I have inherited a web application where the usual ability to press return in any of the input fields has been disabled for the very good reason that the page contains multiple forms, and the application would not be able to determine (or, so I am told) which form to action. The application has been designed so there are no submit button...
I have a frameset where I would like to have someone be able to click a button in one frame that does something with the text selected in the other frame. The button in frame[0] invokes the following javascript to get the selected text from frame[1]:
self.parent.frames[1].getSelection()
The problem, I believe, is that the very act of ...
I found the text browser w3m which is the best so far in my opinion.
However, it is main problem is Javascript.
I cannot see comments at all in Stackoverflow when I use it.
I am not sure what is the restriction in letting Javascript to be in terminal.
How can you enable at least some of JavaScript for Terminal such that comments are v...
I have two divs like so
<div id="parent" style="width:100px:overflow:hidden;">
<div id="child">
tooooooooooooooooooooo much content to fit in parent
</div>
</div>
I'm dynamically updating the content of child and scrolling it using Jquery. I would like to be able to find how wide the child is so I know when to stop scro...
Hello, I have built a media gallery for my site. The media gallery contains media items from sites such as YouTube and Vimeo.
In the system that I'm using, no thumnail is generated for media items that I link to. So what I've done is just display a small "view" of the media in my media gallery. This means I'm just showing a small versi...
Hi all,
I have particular division in my web page. i want to print that div only when click "print" in my web page. i have some javascript code. But that is not well formatted.
Is there any javascript to print particular division from my web page?
Thanks in advance
Gnaniyar Zubair
...