• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

refresh app

Explorer ,
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

I have a url variable to initiate my app

<cfif isDefined("url.init")>
<!---init the app--->
</cfif>

Now I want to invoke this without having to pop open a window. I tried <cfhttp url="site.com?init=1" /> but it doesn't seam to work.

Anyone have a suggestion?[
TOPICS
Advanced techniques

Views

416

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 29, 2006 Dec 29, 2006
quote:

Originally posted by: dandev
sorry I don't want that. I want to do this in the background, which is why I thought cfhttp but it doesn't work.

Try a 1 pixel by 1 pixel iframe.

Votes

Translate

Translate
New Here ,
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

I dont know if this would work for what your doing or not but have you thought about maybe when you pop open the window you open a page with cflocation and pull the querystring from the url and then have the page redirect via CF?

Just a thought

Good luck 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

thats the thing, I don't want to open a window most browsers will block it and I can't redirect.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

Your question is not clear. In your first post you say you want to pop open a window and in your 2nd you say you don't.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

sorry I don't want that. I want to do this in the background, which is why I thought cfhttp but it doesn't work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

quote:

Originally posted by: dandev
sorry I don't want that. I want to do this in the background, which is why I thought cfhttp but it doesn't work.

Try a 1 pixel by 1 pixel iframe.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

LATEST
thanks Dan, a 1 pixel iframe did the trick.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 29, 2006 Dec 29, 2006

Copy link to clipboard

Copied

try sending the URL variable in a <cfhttpparam> tag

<cfhttp URL=" http://www.foo.com/index.cfm">
<cfhttpparam type="URL" name="init" value="1" />
</cfhttp>

honestly, i'm not sure if that's even any different than simply sending the URL var in the <cfhttp> tag like you originally tried...but might be worth a shot.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation