Welcome Guest, Not a member yet? Register   Sign In
Unobtrusive way of enabling $_GET
#1

[eluser]stevefink[/eluser]
Hi all,

I'm looking for a way to enable a way for $_GET requests to work for one particular URL. I basically have a data grid written with the beautiful ExtJS framework ontop of CI (which is my backend, ofcourse. :-) )

I *believe* I'm having issues with my grid where cache is not displaying all results from a dataset in my grid. If you go to say http://www.f1autoinventory.com/inventory/live, you will see that there is at least 14 different rows of data in the JSON object there. Only 9 of them are being displayed in my dataset however and I have a feeling this has something to do with the way Firefox is caching stuff.

Basically I found an option in my javascript to disable Caching, and all it does is basically turn my URLs to get from http://www.f1autoinventory.com/inventory/live to say:

http://www.f1autoimports.com/inventory/l...1466278890

_dc=blahblah is just random data. I don't plan on using this dataset at all. It'll just enforce to browser to go, "Oh look, a GET request for an object we don't have yet."

Is there anyway I can enable the URL above to work with Code igniter? I don't need to be able to access the data, I just need it to get routed to the inventory controller and the live instance method as it always does.

Thank you so much folks. Please let me know if I need to clarify anything. I'm like one week away from submitting this project to the list of CI sites!

- sf
#2

[eluser]llbbl[/eluser]
I never worked with ExtJS framework before, but it looks pretty cool.
#3

[eluser]nmweb[/eluser]
There should be some hacks either in the forums or in the wiki. Do a search to find them.
#4

[eluser]llbbl[/eluser]
why can't you use the URI class?

http://ellislab.com/codeigniter/user-gui...s/uri.html
#5

[eluser]stevefink[/eluser]
[quote author="llbbl" date="1191508747"]why can't you use the URI class?

http://ellislab.com/codeigniter/user-gui...s/uri.html[/quote]

Actually, pardon my lack of caffeine and more importantly my lack of creativity as to when I posted this.

I could easily make my ajax call with something like:

var url = 'http://www.example.com/foo/bar/'+Math.random();

Thanks again all. :-)

- sf




Theme © iAndrew 2016 - Forum software by © MyBB