Click here to Skip to main content
12,247,901 members (51,469 online)

JavaScript

 
AnswerRe: onmouseover and document.getElementById Pin
jainsachin30-Nov-12 10:17
memberjainsachin30-Nov-12 10:17 
Questiondisplaying different contentunder single layout Pin
radha123 from Hyderabad23-Nov-12 4:32
memberradha123 from Hyderabad23-Nov-12 4:32 
AnswerRe: displaying different contentunder single layout Pin
manojwadnere28-Dec-12 1:07
membermanojwadnere28-Dec-12 1:07 
QuestionRegular expression Pin
Member 962181822-Nov-12 3:25
memberMember 962181822-Nov-12 3:25 
AnswerRe: Regular expression Pin
n.podbielski22-Nov-12 21:00
membern.podbielski22-Nov-12 21:00 
GeneralRe: Regular expression Pin
Manfred R. Bihy22-Nov-12 22:20
mvpManfred R. Bihy22-Nov-12 22:20 
GeneralRe: Regular expression Pin
n.podbielski23-Nov-12 22:15
membern.podbielski23-Nov-12 22:15 
Questionform validation Pin
therainking7821-Nov-12 23:07
membertherainking7821-Nov-12 23:07 
AnswerRe: form validation Pin
Richard MacCutchan21-Nov-12 23:17
mvpRichard MacCutchan21-Nov-12 23:17 
GeneralRe: form validation Pin
therainking7828-Nov-12 14:14
membertherainking7828-Nov-12 14:14 
AnswerRe: form validation Pin
bVagadishnu28-Nov-12 12:14
memberbVagadishnu28-Nov-12 12:14 
GeneralRe: form validation Pin
therainking7828-Nov-12 14:17
membertherainking7828-Nov-12 14:17 
Questionopeing a new window in JS after time interval Pin
WaqasCheema21-Nov-12 0:36
memberWaqasCheema21-Nov-12 0:36 
AnswerRe: opeing a new window in JS after time interval Pin
Andrew Stoute30-Nov-12 5:51
memberAndrew Stoute30-Nov-12 5:51 
Look into the .ajax method from JQuery, it will let you make an asychrnous call to get the next URL from the Db.

I don't know much about what technology you're using, but you could do something like this:

$(document).ready(function() {
    $(#surf).click(function() {
       // setInterval will run the function once a second with this code
       setInterval(GetNextUrlAndDisplayIt, 1000);
 
    });
});
 
function GetNextUrlAndDisplayIt() {
 $.ajax(
        {
           url: 'UrlForGettingNextURL.aspx',
           cache: false,
           success: function(data) {
               window.open(data, "myWindow")
           }
}

Calling window.open and using the same name will mean it will open the next URL in the same window.

I'm making a few assumptions here, like that your "surf" button has the id "surf" and that your call to get the next URL returns just the URL and there's no parsing needed.

All in all that code should get you started.

EDIT: Obviously you will need to have some kind of way to know which URL you retreived last as well.
QuestionDraw circuit diagram using javascript Pin
anishkannan18-Nov-12 23:31
memberanishkannan18-Nov-12 23:31 
AnswerRe: Draw circuit diagram using javascript Pin
n.podbielski19-Nov-12 22:07
membern.podbielski19-Nov-12 22:07 
Answerto transfer items in select list to another select list without duplicates Pin
raviteja999200014-Nov-12 21:09
memberraviteja999200014-Nov-12 21:09 
QuestionHow does Yandex do its trick? Pin
Xarzu14-Nov-12 20:42
memberXarzu14-Nov-12 20:42 
AnswerRe: How does Yandex do its trick? Pin
Manfred R. Bihy14-Nov-12 21:44
mvpManfred R. Bihy14-Nov-12 21:44 
Questiondisplay record from two different time Pin
uti123fil8-Nov-12 18:15
memberuti123fil8-Nov-12 18:15 
AnswerRe: display record from two different time Pin
Richard MacCutchan9-Nov-12 0:47
mvpRichard MacCutchan9-Nov-12 0:47 
QuestionAdding a month to the current date Pin
SadiqMohammed7-Nov-12 0:48
memberSadiqMohammed7-Nov-12 0:48 
AnswerRe: Adding a month to the current date Pin
Richard Deeming7-Nov-12 3:00
memberRichard Deeming7-Nov-12 3:00 
GeneralRe: Adding a month to the current date Pin
SadiqMohammed7-Nov-12 19:31
memberSadiqMohammed7-Nov-12 19:31 
GeneralRe: Adding a month to the current date Pin
Richard Deeming8-Nov-12 3:11
memberRichard Deeming8-Nov-12 3:11 
GeneralRe: Adding a month to the current date Pin
SadiqMohammed8-Nov-12 20:08
memberSadiqMohammed8-Nov-12 20:08 
AnswerRe: Adding a month to the current date Pin
deepak.m.shrma19-Nov-12 19:07
memberdeepak.m.shrma19-Nov-12 19:07 
GeneralRe: Adding a month to the current date Pin
Peter_in_278019-Nov-12 19:58
memberPeter_in_278019-Nov-12 19:58 
GeneralRe: Adding a month to the current date Pin
deepak.m.shrma19-Nov-12 20:52
memberdeepak.m.shrma19-Nov-12 20:52 
QuestionNeed to pass object value from javascript to php Pin
gern844-Nov-12 11:08
membergern844-Nov-12 11:08 
SuggestionRe: Need to pass object value from javascript to php Pin
n.podbielski4-Nov-12 13:56
membern.podbielski4-Nov-12 13:56 
GeneralRe: Need to pass object value from javascript to php Pin
gern844-Nov-12 14:29
membergern844-Nov-12 14:29 
GeneralRe: Need to pass object value from javascript to php Pin
n.podbielski4-Nov-12 21:48
membern.podbielski4-Nov-12 21:48 
GeneralRe: Need to pass object value from javascript to php Pin
zengnanhua22-Nov-12 19:27
memberzengnanhua22-Nov-12 19:27 
GeneralRe: Need to pass object value from javascript to php Pin
Killzone DeathMan23-Nov-12 0:39
memberKillzone DeathMan23-Nov-12 0:39 
QuestionWindow restore Pin
mkotaska1-Nov-12 7:00
membermkotaska1-Nov-12 7:00 
AnswerRe: Window restore Pin
ryanb312-Nov-12 12:03
memberryanb312-Nov-12 12:03 
Questionunzip the .gzip files Pin
KIDYA31-Oct-12 20:44
memberKIDYA31-Oct-12 20:44 
AnswerRe: unzip the .gzip files Pin
Jay Zhu2-Nov-12 18:20
memberJay Zhu2-Nov-12 18:20 
Questioni have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
Abhishek Prakash30-Oct-12 6:53
memberAbhishek Prakash30-Oct-12 6:53 
AnswerRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
n.podbielski30-Oct-12 22:48
membern.podbielski30-Oct-12 22:48 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
Abhishek Prakash31-Oct-12 0:40
memberAbhishek Prakash31-Oct-12 0:40 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
Abhishek Prakash31-Oct-12 0:48
memberAbhishek Prakash31-Oct-12 0:48 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
n.podbielski31-Oct-12 2:50
membern.podbielski31-Oct-12 2:50 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
Abhishek Prakash31-Oct-12 3:44
memberAbhishek Prakash31-Oct-12 3:44 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pin
n.podbielski31-Oct-12 7:11
membern.podbielski31-Oct-12 7:11 
QuestionWorking example for Javascript to call a java webservice Pin
sekhar48430-Oct-12 0:50
membersekhar48430-Oct-12 0:50 
AnswerRe: Working example for Javascript to call a java webservice Pin
Richard MacCutchan30-Oct-12 1:54
mvpRichard MacCutchan30-Oct-12 1:54 
AnswerRe: Working example for Javascript to call a java webservice Pin
ryanb312-Nov-12 12:04
memberryanb312-Nov-12 12:04 
GeneralRe: Working example for Javascript to call a java webservice Pin
Member 946160725-Nov-12 20:32
memberMember 946160725-Nov-12 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 27 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid