Results 1 to 4 of 4

Thread: Qwebview back process page agin instead of just displaying the previous info

  1. #1
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Qwebview back process page agin instead of just displaying the previous info

    Good day Ive have an interesting little problem.

    I have a program using qwebkit. i process a page using url variable in coldfusion for example the page url is

    localhost/processcode.cfm?mycode=20145.

    What that code will do is insert the detail into a mysql database.

    So if i then browse to another page then click the back button when it opens the page it seems to reload the page instread of just displaying the info.
    So i will then have the code inserted into the database again. so after a few attempts i have a list of codes that shouldnt be there duplicated.

    I dont know if i have to use QWebPage::NavigationTypeBackOrForward
    and if so how or if i must enable cache . can somone please be of some assistance.

    Perhaps a code example will be very nice.


    Regards

  2. #2
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Qwebview back process page agin instead of just displaying the previous info

    Nobody have any ideas?

  3. #3
    Join Date
    Sep 2011
    Location
    Portugal
    Posts
    25
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qwebview back process page agin instead of just displaying the previous info

    Can't you validate the duplicates in the server-side code?

  4. #4
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Qwebview back process page agin instead of just displaying the previous info

    I could do that but there are alot more than one page where this is happening so that is alot of changes on the serverside.
    if i was just able to stop webkit from doing it that would be easier "maybe"

    Regards

Similar Threads

  1. Replies: 1
    Last Post: 31st March 2012, 19:21
  2. QWidget displaying the previous screen
    By asmncl in forum Qt Programming
    Replies: 2
    Last Post: 1st July 2011, 13:10
  3. can not go back to the previous window
    By xhsoldier in forum Qt Programming
    Replies: 1
    Last Post: 20th October 2010, 05:45
  4. to set date and time in the file info of two days back
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2007, 16:54
  5. Replies: 12
    Last Post: 14th June 2006, 09:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.