How Do I Pass URL Parameters with Chrome?

3,325 views
Skip to first unread message

snowfi6916

unread,
Aug 26, 2014, 3:17:09 PM8/26/14
to chromium...@chromium.org
I am trying to pass URL parameters with the address of my website.  Here is what I have:

"http://my.website.com/page#/?txtStyle=blah&txtSize=blah&txtColor=blah"

Here, the parameters I am passing in are "txtStyle", "txtSize", and "txtColor".  In Internet Explorer and Firefox, these parameters are passed in fine, and the page loads with the given parameters in place.

However, in Chrome, it deletes the parameters all together and just gives me this:


"http://my.website.com/page"

And loads the page with no parameters.

I DON'T want this, as part of the functionality of my website is to pass parameters if the user wants to.  Chrome is the only browser I am having a problem with.  Can someone please tell me how to make it so Chrome will accept URL parameters like these?  Is there a setting in Chrome where I can turn off the "auto delete" of parameters?  Thanks.

Christian Biesinger

unread,
Aug 26, 2014, 5:54:25 PM8/26/14
to snowf...@gmail.com, Chromium-discuss
Hi Snowfi,

Chrome does not in general delete parameters like that, in what context are you trying to use this URL? Do you have a URL where we can see what is going on?

thanks,
-christian


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss


Chris Bentzel

unread,
Aug 26, 2014, 7:55:19 PM8/26/14
to Christian Biesinger, snowf...@gmail.com, Chromium-discuss
Note that those parameters are after the fragment separator #

snowfi6916

unread,
Aug 26, 2014, 10:39:47 PM8/26/14
to chromium...@chromium.org, snowf...@gmail.com
I can't give the exact address that I am using, as it reveals information about the company I work for.

So I guess I'll explain the page itself.  It has three input fields, each one corresponding to the parameters I mentioned (txtStyle, txtSize, txtColor).  It also has a Submit button.

If the user goes to the page without the parameters in the address bar, it loads with those 3 input fields blank.  The user then inputs the values into those 3 fields and Submits the form.

If the user HAS those 3 parameters in the address bar, the page Auto Submits with those 3 parameters in the input fields.

I hope that makes it a little clearer.

Christian Biesinger

unread,
Aug 27, 2014, 6:50:57 PM8/27/14
to Thomas Borgnis, Chromium-discuss
I'm kind of confused, what HTML/JS code are you using? A normal form submit will not set parameters after the hash sign.

-christian

snowfi6916

unread,
Aug 27, 2014, 7:35:55 PM8/27/14
to chromium...@chromium.org, snowf...@gmail.com
I'm using normal HTML code, but I am using jQuery for my Javascript.  And I'm pretty sure I am also using the jQuery Address plugin.

Christian Biesinger

unread,
Aug 27, 2014, 8:16:20 PM8/27/14
to Thomas Borgnis, Chromium-discuss
...you really have to get more specific than "normal HTML code" if you want help with your question

-christian

snowfi6916

unread,
Aug 27, 2014, 9:00:43 PM8/27/14
to chromium...@chromium.org, snowf...@gmail.com
This particular site is running on Wordpress.  The HTML code is literally just a div tag (with an id) that is empty.  The entire page is being created with the jQuery Javascript.

Christian Biesinger

unread,
Aug 27, 2014, 9:53:30 PM8/27/14
to Thomas Borgnis, Chromium-discuss
With the information you've given, all I can say is that there's a bug in your JavaScript code.

-christian
Reply all
Reply to author
Forward
0 new messages