Welcome Guest, Not a member yet? Register   Sign In
Opening a new page w/ dynamic data
#14

(This post was last modified: 03-06-2017, 12:13 PM by codeguy.)

(03-06-2017, 11:34 AM)Paradinight Wrote: Wouter60 made a little misstake Smile
It missing a /

Code:
window.open("<?= site_url('c_tunesheet/index/');?>"+tuneID,'_blank');

When I try . .

Code:
window.open("<?= site_url('c_tunesheet/index/');?>"+tuneID,'_blank');
. . . I still get that [b]Access forbidden![/b] error.

I notice that the url that appears in the browser for that page that opened is now:

[b]http://localhost/CID17/+<?php site_url('c_tunesheet/index/');?>+1632[/b]

Is that possibly because this is inside a .js file and not a .php file?

i.e. The browser seems not to know what to do with the php insert before it executes the window.open().

Damn, for a while I couldn't figure out how to turn on Code formatting. Now I can't shut it off. [Image: confused.gif]
Reply


Messages In This Thread
Opening a new page w/ dynamic data - by codeguy - 03-03-2017, 10:06 AM
RE: Opening a new page w/ dynamic data - by codeguy - 03-06-2017, 12:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB