Hi all,
I'm working on an AJAX site, and I'm using Dojo and Mootools (both
Javascript) to provide some interactivity. Dojo has a back button fix, but
it requires the use of of a string added onto a URL (I.e. www.site.com/pages/ becomes www.site.com/pages/#page1). I want to harness
this function to allow you to go back to the page you were on. Since AJAX
does not reload a page, a PHP script would only be called when someone did
something to reload the page, such as hitting the back button. I have tried
a few different $_SERVER variables, but none will give me the "#page1", only
the URL up until that point. Can anyone think of a way to grab the entire
URL, with the # modifiers?
Thanks in advance,
Matt White 7 1497
On Mar 24, 4:22 pm, "Matthew White" <mgw...@msn.comwrote:
Hi all,
I'm working on an AJAX site, and I'm using Dojo and Mootools (both
Javascript) to provide some interactivity. Dojo has a back button fix, but
it requires the use of of a string added onto a URL (I.e.http://www.site.com/pages/becomeswww.../pages/#page1). I want to harness
this function to allow you to go back to the page you were on. Since AJAX
does not reload a page, a PHP script would only be called when someone did
something to reload the page, such as hitting the back button. I have tried
a few different $_SERVER variables, but none will give me the "#page1", only
the URL up until that point. Can anyone think of a way to grab the entire
URL, with the # modifiers?
Thanks in advance,
Matt White
Matt,
Interesting problem. I'm not sure if the #page1 gets stripped at
HTTP...but I am recreating the issue on my server as well....
Any way you can overload that method and change that page value to a
GET value? Then your PHP will receive the value and act accordingly.
I would love to hear what your eventual solution is, though.
Regards,
Steve
The problem with a GET value will reload the page- something that I don't
want to do with an AJAX site. Only a # value won't force a reload.
Matt
"ELINTPimp" <sm*****@gmail.comwrote in message
news:2f**********************************@d62g2000 hsf.googlegroups.com...
On Mar 24, 4:22 pm, "Matthew White" <mgw...@msn.comwrote:
>Hi all,
I'm working on an AJAX site, and I'm using Dojo and Mootools (both Javascript) to provide some interactivity. Dojo has a back button fix, but it requires the use of of a string added onto a URL (I.e.http://www.site.com/pages/becomeswww.../pages/#page1). I want to harness this function to allow you to go back to the page you were on. Since AJAX does not reload a page, a PHP script would only be called when someone did something to reload the page, such as hitting the back button. I have tried a few different $_SERVER variables, but none will give me the "#page1", only the URL up until that point. Can anyone think of a way to grab the entire URL, with the # modifiers?
Thanks in advance, Matt White
Matt,
Interesting problem. I'm not sure if the #page1 gets stripped at
HTTP...but I am recreating the issue on my server as well....
Any way you can overload that method and change that page value to a
GET value? Then your PHP will receive the value and act accordingly.
I would love to hear what your eventual solution is, though.
Regards,
Steve
hi ,
using jquery to over come the problem for the particular instance
I'm sure jQuery is a decent framework, but I'm already using two (but both
are superior in their own ways), and a third just seems like it would be
awkward to implement, especially since it shares some of the same namespaces
with Mootools. I'd like a way to implement this is one of the two
frameworks I'm already using, or in PHP.
Matt
"Damodhar" <da*****@gmail.comwrote in message
news:86**********************************@i29g2000 prf.googlegroups.com...
hi ,
using jquery to over come the problem for the particular instance
Damodhar's comment made me think, and I whipped up a piece of JavaScript
that runs only one (when the page is loaded), and that seems to be
accurately giving me the data after the #. Thanks for looking into the
problem anyways!
Matt
"Matthew White" <mg****@msn.comwrote in message
news:WwVFj.1751$Ew5.1390@trnddc04...
I'm sure jQuery is a decent framework, but I'm already using two (but both
are superior in their own ways), and a third just seems like it would be
awkward to implement, especially since it shares some of the same
namespaces with Mootools. I'd like a way to implement this is one of the
two frameworks I'm already using, or in PHP.
Matt
"Damodhar" <da*****@gmail.comwrote in message
news:86**********************************@i29g2000 prf.googlegroups.com...
>hi ,
using jquery to over come the problem for the particular instance
ELINTPimp wrote:
On Mar 24, 4:22 pm, "Matthew White" <mgw...@msn.comwrote:
>Hi all,
I'm working on an AJAX site, and I'm using Dojo and Mootools (both Javascript) to provide some interactivity. Dojo has a back button fix, but it requires the use of of a string added onto a URL (I.e.http://www.site.com/pages/becomeswww.../pages/#page1). I want to harness this function to allow you to go back to the page you were on. Since AJAX does not reload a page, a PHP script would only be called when someone did something to reload the page, such as hitting the back button. I have tried a few different $_SERVER variables, but none will give me the "#page1", only the URL up until that point. Can anyone think of a way to grab the entire URL, with the # modifiers?
Thanks in advance, Matt White
Matt,
Interesting problem. I'm not sure if the #page1 gets stripped at
HTTP...but I am recreating the issue on my server as well....
The #page1 won't be sent to the web server, it's just something that the
browser uses internally
The request (seen in the url field) http://www.site.com/pages/becomeswww...m/pages/#page1
is sent as www.site.com/pages/becomeswww.site.com/pages/
--
//Aho
..oO(Matthew White)
>I'm working on an AJAX site, and I'm using Dojo and Mootools (both Javascript) to provide some interactivity. Dojo has a back button fix, but it requires the use of of a string added onto a URL (I.e. www.site.com/pages/ becomes www.site.com/pages/#page1). I want to harness this function to allow you to go back to the page you were on. Since AJAX does not reload a page, a PHP script would only be called when someone did something to reload the page, such as hitting the back button. I have tried a few different $_SERVER variables, but none will give me the "#page1", only the URL up until that point. Can anyone think of a way to grab the entire URL, with the # modifiers?
The fragment identifier is not part of the URI. The server will never
see it.
Micha This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve |
last post by:
Hi,
I have a very long string, someting like:
DISPLAY=localhost:0.0,FORT_BUFFERED=true,
F_ERROPT1=271\,271\,2\,1\,2\,2\,2\,2,G03BASIS=/opt/g03b05/g03/basis,...
|
by: Jorn W Janneck |
last post by:
hello everyone.
i have the sort of question that makes me feel like i am missing the forest
for the trees, so apologies if i am missing the blatantly obvious here. i am
using saxon, and mostly...
|
by: Mike |
last post by:
Hi I've written a module to find the first occurrence of a record in a
query (that is my forms datasource) that matches four specified
criteria. No matter what I try it doesn't seem to find ...
|
by: Doug |
last post by:
The html below shows DataList "DiscountList" nested within DataList
"EventItemList". DiscountList contains a Label control.
I'm trying to find the label, using FindControl, during...
|
by: ElkGroveR |
last post by:
Hi there!
I'm using PHP to create a simple, dynamic MySQL SELECT query.
The user chooses a selection from a HTML Form SELECT element's many options
and submits the form via a POST action.
...
|
by: HEMH6 |
last post by:
Who can help solve this problem???
Finding the Largest Value
(a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as...
|
by: Mike Heywood |
last post by:
Hi,
I am currently trying to automate a process that I have been studying
the manual results from for a while. The process simply identifies
events that meet certain criteria and at the moment...
|
by: NetworkElf |
last post by:
Hi all,
I'm writing a service that needs to discover the full directory path for a
given locally based share at startup. IOW, I need to have the service
running on someserver to take ...
|
by: spicster |
last post by:
I need help with finding an entire inventory value for a java assignment. This is what I have so far. I am new to Java and am struggling. In need of help, thanks
import...
|
by: Astley Le Jasper |
last post by:
Sorry for the numpty question ...
How do you find the reference name of an object?
So if i have this
bob = modulename.objectname()
how do i find that the name is 'bob'
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |