Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
passing url
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
chelvan
New Member
Join Date:
Aug 2008
Posts:
90
#1
passing url
Sep 3 '08, 12:44 PM
hi
all
its me again
Is it possible to passing asn url or any other pages through javascript.
thanks in advance
chel-1
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#2
Sep 3 '08, 02:30 PM
What's an "asn url"? Or was that supposed to be "a url"?
Show what you mean by code or an example.
Comment
Post
Cancel
chelvan
New Member
Join Date:
Aug 2008
Posts:
90
#3
Sep 4 '08, 03:31 AM
Originally posted by
acoder
What's an "asn url"? Or was that supposed to be "a url"?
Show what you mean by code or an example.
oh sorry
ya thats url
thanks
chel-1
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#4
Sep 4 '08, 10:22 AM
This is a simple example:
[code=javascript]location.href = "http://www.example.com/index.php?url=" + encodeURICompon ent(url);[/code]
Comment
Post
Cancel
chelvan
New Member
Join Date:
Aug 2008
Posts:
90
#5
Sep 9 '08, 10:22 AM
thanks all
with thanks
chel-1
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#6
Sep 9 '08, 11:19 AM
You're welcome. Glad it's working.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment