i've got a foo.php file which retrieves client infomation and generates an xml output with the relevant client info.
i'm trying this ajax call which does not seem to want to work
$.get('http://www.foo.php','',function(xml){
$('samplenode',xml).each(function(i){
//stuff done here
});
}, 'xml');
i'm still new to javascript...
This example uses mootools but I see the same behavior with scriptaculous.
I have a div with some content, in this case a single X and there's plenty of white space around the content. I make the div draggable but I find it's difficult to drag the div in IE. In IE I need to click and drag directly on the content of the div, the single...
Is it possible to run some javascript code (having perhaps an NSString as input) without using a UIWebView? I would like to run this code in a separate thread so UIWebView is not possible and I don't really want to render anything, just get back the results.
...
A certain variable might contain a relative path or an absolute path. Either way, I need to be able to pull the filename from the variable:
http://www.somesite.com/dir1/dir2/filename.gif
/dir1/dir2/filename.gif
The directory structure is also arbitrary. So basically given either of the url's above (with arbirtrary directory structur...
Hello, does anybody know, how to get URI of current page/tab?
...
I have several divs for displaying demo boxes of graphics, and code boxes for displaying sample code for using the graphics. What I want to do is make the code boxes invisible until you click on the demo box - which should make the code box slide into view. (See here to see how it looks)
This should be super simple with jQuery, as I've ...
My firefox extension have to:
Save an address of current page,
Open new page
Put this address into content of the new page, if a button will be pressed.
Problem is, how to save to var this address, becouse if I will do it from first function, the function that is from button doesnt have this var. Should i use a global function, or so...
I get a java script error on Internet Explorer when changing the index of a
drop down list control inside a form.
the error is: __EVENTTARGET is null or is not an object
The code is auto generated by the framework library
...
I'm writing a basic recipe organization application and I would like to be able to dynamically add additional items to the list of ingredients using Ajax.
This is what one ingredient <fieldset> looks like:
<fieldset id="ingredient_item_0">
Ingredient <input id="ingredient_0" type="text" size="20" />
<div id="ingredient_list_0" style=...
I'm an experienced developer, but new to javascript. I can't figure out when I should use the whole "document.getElementById(e.id).value" and when I can just use "e". I'm looking at a tiny existing function in a common functions script that uses both.
function RemoveFormat(e) {
document.getElementById(e.id).value =
cleanNumber(...
So, I have received a string of HTML from the server using Javascript. It should be relatively well formed, but each node does not necessarily have a common ancestor.
Ex. Response:
<li>Item 1</li>
<li>Item 2</li>
...
The purpose here is to replace HTML currently on the page with the HTML received from the server without requiring an i...
Hey folks,
I have been working on a scheduling website for the past few weeks. I am showing the schedules as PHP generated html-tables. I use merged cells for showing events. I have come to a problem when trying to delete events using JS. Since those are merged cells, using rowspan, I have to go through the table and re-adding empty cel...
Its pretty simple to see what I mean if you look at the image, which I also need to shrink back if you click it again, it needs to be animated as well:
...
Hi All, I am looking for info on the event and ui objects the jquery selectable events: "selecting", and "start" take as parameters. I cannot find this in the documentation and looping through the properties is no help.
$('#content_td_account').selectable({
filter: 'li:not(".non_draggable")',
...
First off this is my - Test Site
This is my testing playground for Google maps, I am not concerning myself with aesthetics. What I am having trouble with is getting some jQuery to fire when I click on a link inside of the info window. If you are familiar with Google Maps this is where I create my infowindow:
GEvent.addListener(marker...
I have some text on a page and I want to located and remove any text found in brackets.
For example:
<td>here is [my text] that I want to look at</td>
So I want to grab that text (my text), save it in a variable and remove it from where it is.
...
I'm working on a site and I have run into a few problems. Here is the site:
http://wesbos.com/tf/shutterflow/?cat=1
I have two divs. .slide and .cover.
.cover fades in and out when hovered over displaying some text and a transparent background. This is done with Jqery and the transpareny is with CSS.
This works fine on load in all ...
does anyone know how can I check variable whether is number or string in javascript
...
I have a textbox that must have a MIN number of characters as well as a MAX number of characters. What is the best way, using jQuery, to make sure that the input is within the range (while displaying status messages to the user) before allowing the user to submit the form?
Update: the code below works to some degree, however I am getti...
Hi. I have a code (see it below). It works perfectly in Firefox: it saves submitted information after clicking __JL_SAVE button and keeps user on same page.
But in Internet Explorer & Opera it only redirects to index page (index.php) and doesn't save submitted information.
What can I do for solving this problem? Thanks.
Here is my code...