# getURL vs. loadVariables .. please help!

**URL:** <https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528>\
**Category:** programming\
**Created:** [April 5, 2006, 6:52pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528 "2006-04-05T18:52:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 5, 2006, 6:52pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/1 "2006-04-05T18:52:21Z")

</div>

Hello, quick question

I have the following code:

```auto

[COLOR=blue][FONT=Arial]getURL("webform1.aspx?id=0&status=C",0,"Get");[/FONT][/COLOR]
[COLOR=blue][FONT=Arial]

```

[/FONT][/COLOR]  
[COLOR=blue][FONT=Arial][/FONT][/COLOR]  
[COLOR=blue][FONT=Arial]everything this happen on my submit button, flash brings a new page by asp.[/FONT][/COLOR]  
[COLOR=blue][FONT=Arial]but i don’t want to bring a new page… all I want is to send the info to asp so asp gets updated and that’s it.[/FONT][/COLOR]  
[COLOR=blue][FONT=Arial][/FONT][/COLOR]  
[COLOR=blue][FONT=Arial]do i have to use loadVariables(“bla bla bla”[/FONT][/COLOR]  
[COLOR=blue][FONT=Arial]or instead[/FONT][/COLOR]  
[COLOR=blue][FONT=Arial][/FONT][/COLOR]  
[COLOR=blue][FONT=Arial]

```auto
[/FONT][/COLOR]
[COLOR=blue][FONT=Arial]getURL("webform1.aspx?id=0&status=C",0,"Post");[/FONT][/COLOR]
[COLOR=blue][FONT=Arial]{/as][/FONT][/COLOR]
[COLOR=blue][FONT=Arial][/FONT][/COLOR] 
[COLOR=blue][FONT=Arial]please advice... thanks! :huh: [/FONT][/COLOR]
[COLOR=blue][FONT=Arial][/FONT][/COLOR] 
[COLOR=blue][FONT=Arial][/FONT][/COLOR] 
[COLOR=blue][FONT=Arial][/FONT][/COLOR]
```

---

<div class="post-metadata">

**Author:** ![signifer123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@signifer123](https://forum.kirupa.com/u/signifer123)\
**Post date:** [April 5, 2006, 10:21pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/2 "2006-04-05T22:21:44Z")

</div>

if you want to jsut send inforamtion without showing page use sendAndLoad, don’t worry you don’t have to load, but it will send 😛

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary435.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary435.html)

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 5, 2006, 10:32pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/3 "2006-04-05T22:32:53Z")

</div>

```auto

var sendform:LoadVars = new LoadVars();
sendform.id = 0;
sendform.status = "C";
sendform.sendAndLoad("webform1.asp", sendform, "POST");
sendform.onLoad = function(){
   trace ("you sent! (but you didn't load)")
};

```

---

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 6, 2006, 1:58pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/4 "2006-04-06T13:58:08Z")

</div>

> [@Defective](#):
>
> ActionScript Code:  
> [FONT=Courier New][LEFT]\</p\>  
> \<p\>var sendform:[COLOR=#0000ff]LoadVars[/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]LoadVars[/COLOR]COLOR=#000000[/COLOR];\</p\>  
> \<p\>sendform.[COLOR=#000080]id[/COLOR] = [COLOR=#000080]0[/COLOR];\</p\>  
> \<p\>sendform.[COLOR=#0000ff]status[/COLOR] = [COLOR=#ff0000]“C”[/COLOR];\</p\>  
> \<p\>sendform.[COLOR=#0000ff]sendAndLoad[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“webform1.asp”[/COLOR], sendform, [COLOR=#ff0000]“POST”[/COLOR][COLOR=#000000])[/COLOR];\</p\>  
> \<p\>sendform.[COLOR=#0000ff]onLoad[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]\</p\>  
> \<p\> [COLOR=#0000ff]trace[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#ff0000]“you sent! (but you didn’t load)”[/COLOR][COLOR=#000000])[/COLOR]\</p\>  
> \<p\>[COLOR=#000000]}[/COLOR];\</p\>  
> \<p\>  
> [/LEFT]  
> [/FONT]

ok i just tried that but i didn’t connect at all with my asp

did i forget anything there?

before i would connect with  
getURL(webform1.aspx?id=1&status=I",0,“Post”);

and also with  
loadVariables(webform1.aspx?id=1&status=I",0,“Post”);

those would connect with asp, bringing the new page that is killing me of course… any advice, tips … thanks guys! (-:

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 6, 2006, 2:14pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/5 "2006-04-06T14:14:22Z")

</div>

I bet it connected and you didin’t even know becasue it didn’t open a new page. What happens when you just type your url w/ variables in the browser? What exactly is this ASP page doing?

---

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 6, 2006, 2:42pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/6 "2006-04-06T14:42:44Z")

</div>

> [@Defective](#):
>
> I bet it connected and you didin’t even know becasue it didn’t open a new page. What happens when you just type your url w/ variables in the browser? What exactly is this ASP page doing?

well for now what the asp page is receiving the id and the status, if it receives the id, then a new module should open up… and we are just doing that to test if its connecting… so this time we are not getting any respond… yes a new page didn’t open up… we continue with our movie… but there is no connection with the asp… we have the asp to respond to us if this is receiving the values… apparently is not.

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 6, 2006, 2:48pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/7 "2006-04-06T14:48:16Z")

</div>

then a new module should open up

:puzzle:

---

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 6, 2006, 3:41pm UTC](https://forum.kirupa.com/t/geturl-vs-loadvariables-please-help/184528/8 "2006-04-06T15:41:56Z")

</div>

> [@Defective](#):
>
> then a new module should open up
> 
> :puzzle:

it seems to be a .NET issue… i hope so!.. i’m scratching my head to get this resolve!..

at least is connecting… so that’s good!
