0
votes
0answers
17 views

Jquery using $(window).on('beforeunload') with statechange and ajax

I would like to call an alert window as with $(window).on('beforeunload') when the user clicks the back button or navigates to another page, but I have the following function bound as well: ...
-2
votes
1answer
35 views

How to Populate a dropdown list based on value in textbox?

I want to populate a dropdown list based on the value in a textbox in my form ? How this can be implemented ? Thanks ! here is what i tried : <html> <input type=text id=name maxlength=15 ...
0
votes
2answers
20 views

Save value from external page into Javascript variable using jQuery

Let's say I have one page that displays the number "5". The page source code looks like this: 5 Now, on a different web page, I want to save the contents of this page (5) to a Javascript variable. ...
0
votes
3answers
37 views

String to array of array

I have an ajax routine that return a string that looks something like this [["analog.__VG_SPP3_SFRTPCT","analog.__VG_SPP3_SFRTPCT"], ["analog._3305_LIST210_1","analog._3305_LIST210_1"], ...
0
votes
1answer
57 views

Cross-domain AJAX withCredentials, PHP returns header content-lenght, but no content

I am trying to send a cross domain request from a page on one domain to a PHP server on an other domain. Everything works fine without credentials (I need session) but as soon as I add credentials, it ...
0
votes
1answer
16 views

Cannot get data to display on chart

I am receiving data correctly in my console from the mtgox api. However, I cannot get the data to display on my chart. I'm using highcharts. Any help is appreciated. My code is posted below. ...
1
vote
1answer
69 views

Why does this AJAX request always fail?

I'm new to both Ajax and Javascript, and I'm having a heck of a time figuring out why this request is always failing: function sellStock(sellData){ $.ajax({ url: ...
0
votes
1answer
20 views

How to run a specific script in a haml view?

So I'm trying to invoke a pollServer(); script in a haml view but it's not running. Here's how: %div{:id => 'ajaxurl', :class => @poll.id} :javascript $(document).ready(function(){ ...
1
vote
1answer
42 views

calling a function on the first time won't work as expected, but next time is working

here's my code: treksID=[]; recommendedTrekId=2; $(document).ready(function(){ showTrek('random'); showTrek(recommendedTrekId); }); function showTrek(filter){ if (filter=="random"){ ...
1
vote
1answer
13 views

XHR doesn't appear to fire on transition with Ember

Basic Ember app using an API i've written in Laravel. I have an index page showing all products, I generate edit links and when I visit the edit link none of the data is being returned from the model. ...
0
votes
5answers
46 views

post form variable to php return result and place in div

I am trying to submit a form post to a php page (which has dummy vars) then return the results and display them in the 'userinfo' div on the same page. I suspect I need to post the information to the ...
0
votes
3answers
56 views

PHP AJAX JQUERY load page

I'm using the code below to load the results from a database query in a PHP page: <a href="results.php?item=itemId">click me</a> $('.item > a').click(function(){ var url = ...
0
votes
2answers
39 views

How to set the time to each content should be shown after the site have already loaded?

I'm looking for some plugin (js/ajax) or tutorial which let me set the time to each content should be shown after the site have already loaded. For example: I want my website with a loader and after ...
0
votes
1answer
13 views

How to convert html into data image uri

Well my question seems weird but here what i want to achieve . Similar to the below link http://www.wovenlabelsuk.com/craft-hobby-labels/wl-02.html I want a text to embed with image and i get data ...
1
vote
2answers
52 views

Caching a jquery ajax response in javascript/browser

I would like to enable caching of an ajax response in javascript/browser. From the jquery.ajax docs: By default, requests are always issued, but the browser may serve results out of its cache. ...

1 2 3 4 5 1464
15 30 50 per page