[jQuery] Re: extract base url

2009-05-08 Thread Danilinho
you can try this: window.location.href = 'http://www.google.co.za?key=' + val1; after: you can try this: window.location.href = 'http://www.google.co.za?key=' + val2;

[jQuery] Re: extract base url

2009-05-01 Thread waseem sabjee
try this. var baseurl = "inwww.mysite.com "; var isquery = "?"; var actual = "1"; var val = "val="+actual; top.location = baseurl+isquery+val // this should return inwww.mysite.com ?val="1" you can a

[jQuery] Re: extract base url

2009-05-01 Thread mkmanning
If that's all you need for the search property, then just use window.location.host + '?key=val#' On May 1, 1:39 pm, buntu wrote: > Here is an example: > > I need to append '?key=val1' to the current url which is >  www.mysite.com/web/test.html > > and this I can do using: >   window.location.hre

[jQuery] Re: extract base url

2009-05-01 Thread buntu
Here is an example: I need to append '?key=val1' to the current url which is www.mysite.com/web/test.html and this I can do using: window.location.href+'?key=val1' resulting in www.mysite.com/web/test.html?key=val1 I now need a way to modify val1 to val2, if I do: window.location.href+'

[jQuery] Re: extract base url

2009-05-01 Thread waseem sabjee
ok so you wanna edit the URL ? var url = "www.google.co.za"; top.location = url; this will send the page to www.google.co.za var url top.location; this shoud retrieve the URL Sorry. I'm unable to fully answer your question at this time. On Fri, May 1, 2009 at 10:17 PM, buntu wrote: > > Hi,