473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Linking to "home.htm?id=1" ?

15
Hi,

How can I link to "home.htm?id=1" ? I have tried to use
getURL("home.htm%3Fid-=1") and getURL("home.htm?id-=1")
but it doesn't work because flash looks for the physical file which doesn't exist because I'm using the parameter id=1 to generate some values in my page.

Thanks in advance.

Gordon
Oct 26 '07 #1
4 2151
xNephilimx
213 Expert 100+
Hi spoken.
I don't know what you're trying to do exactly, but
getURL("home.htm?id=1");
should work without any problem

This way:
getURL("home.htm?id-=1")

maybe didn't work for you because of that - (dash) before the =

Kind regards,
The_Nephilim

Hi,

How can I link to "home.htm?id=1" ? I have tried to use
getURL("home.htm%3Fid-=1") and getURL("home.htm?id-=1")
but it doesn't work because flash looks for the physical file which doesn't exist because I'm using the parameter id=1 to generate some values in my page.

Thanks in advance.

Gordon
Oct 27 '07 #2
spoken
15
Hi spoken.
I don't know what you're trying to do exactly, but
getURL("home.htm?id=1");
should work without any problem

This way:
getURL("home.htm?id-=1")

maybe didn't work for you because of that - (dash) before the =

Kind regards,
The_Nephilim
Hi,

What I'm doing is that I have created 1 page, home.htm. And based on the id, I will populate different data in that page from my XML. So home.htm?id=1 gets a different set of data from home.htm?id=2.

So, basically there is no physical page call "home.htm?id=1", hence when I do getURL("home.htm%3Fid=1"), flash cannot find the file and give me a "404-page not found" error.

Btw, I use "%3F" in place of "?" because it doesn't recognize "?" in the parameters of getURL()

Thanks.
Gordon
Oct 27 '07 #3
spoken
15
Yes, you were right.
I could just use getURL("home.htm?id=1")

The problem was that that didn't work when I tried to run it on my computer but it works when put it up in the web server.

Thanks.
Gordon
Oct 27 '07 #4
xNephilimx
213 Expert 100+
Hi
The url you are passing to getURL is just a string, and you should pass it the exact same way you would write it on the address bar.
If you write home.htm?id=1 in the address bar and it works, the same must work with getURL. Don't replace the "?" with %3F, because it will be parsed by the bowser as part of the name of the file, not the actual question mark to pass parameters.
I suppose your flash movie is in an html too. If not, it wil not work because of security issues that flash has.

Best regards
The_Nephilim

Hi,

What I'm doing is that I have created 1 page, home.htm. And based on the id, I will populate different data in that page from my XML. So home.htm?id=1 gets a different set of data from home.htm?id=2.

So, basically there is no physical page call "home.htm?id=1", hence when I do getURL("home.htm%3Fid=1"), flash cannot find the file and give me a "404-page not found" error.

Btw, I use "%3F" in place of "?" because it doesn't recognize "?" in the parameters of getURL()

Thanks.
Gordon
Oct 27 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Russ Perry Jr | last post by:
I'm using "ID" and "Value" in the generic sense here... Let's say one page I had a <html:select> with a collection like this: <html:options collection="items" property="key"...
4
by: Luca T. | last post by:
Hello, i need a way to find the home folder of the current user no matter if i am in Linux or Windows for instance: * Linux: /home/username * Windows: C:\Documents and Settings\username Is...
4
by: Ed | last post by:
Hello All, I posted earlier about a problem I was having with editing or pasting/deleting files in the "Home Directory" of my web server. I just noticed that the "Home Directory" option in the...
22
by: David. E. Goble | last post by:
Hi All; I have a few of these; sigsImages="sigs/finished1.jpg" sigsImages="sigs/foghorn.jpg" lower I have;
1
by: Kenjis Kaan | last post by:
I had to run DB2 on Win2k. After installation it puts a directory under c:\DB2 and c:\DB2Log and C:\Program Files\SQLLIB Now am all confused which is instance home, db2 home etc. I had to...
4
by: Guoqi Zheng | last post by:
On my application, I need to have different action based on the pass in query string. When the query string is not presented, I try to use If request.querystring("id") ="" THEN ...... This is...
2
by: jain_tj | last post by:
Could anyone please help me with the following problem My xml file is ============== <fig id="F0000001"> <caption>Caption text</caption> <image id="I0000001" image.class="halftone"...
6
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why doesn't the global variable "divId" always refer to the element with id="divId"?...
7
by: Gabriella | last post by:
Hi, I would like to know how to find out which is the browser's "home" URL? This is so I'll be able to suggest "set as homepage" for my website, only for those who did not set it beforehand. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.