Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7977565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:14:17+00:00 2026-06-04T09:14:17+00:00

In the jQuery file itself: this.item_test = function(){ $(‘body’).css(‘background-color’, ‘#00ff00’); window.location = /allCorrect/yes; }

  • 0

In the jQuery file itself:

this.item_test = function(){
    $('body').css('background-color', '#00ff00');
    window.location = "/allCorrect/yes";
}

Out come 1 (for line 1 proves jQuery is working): The background of the UIWebView colors green (expected & correct).

Out come 2 (for line 2, the window.location line): In the (UIWebView *)webView shouldStartLoadWithRequest: delegate method, the expected value for request.mainDocumentURL.relativePath is /allCorrect/yes.

My Problem:
Instead of getting “/allCorrect/yes”, I get the below file location of the calling jQuery file itself:

“/Users/chiemekailo/Library/Application Support/iPhone Simulator/5.0/Applications/77BB3C4A-E99C-47C3-B2AE-F4DSDMFE84MFOEF/Documents/Unzipped/OPS”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:14:18+00:00Added an answer on June 4, 2026 at 9:14 am

    This will work without using jQuery so I can’t imagine why or how jQuery makes a difference, but instead of using a location change you could try this method instead which (without jQuery) will also trigger webViewShouldStartLoadWithRequest to see if it works with jQuery.

    iFrame = document.createElement("IFRAME");
    iFrame.setAttribute("src", "/allcorrect/yes");
    document.body.appendChild(iFrame); 
    iFrame.parentNode.removeChild(iFrame);
    iFrame = null;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a mailing list script. It works by itself without jquery but I
I'm using jquery file uploader (per blueimp) and I'm wondering how I can direct
I am implementing a jquery file upload page. While a user is adding files,
I am wrapping some jQuery functionality around jQuery File Upload plugin. It uses an
I am currently using Valums JQuery File Upload plugin. The plugin is very convenient
I have an Ajax contact form that links to a jquery file but for
I'm using the Google CDN to load my JQuery file. However, I'd like to
I am trying to clear images using external jquery file but it's not showing
on my master page, I have referenced jquery file. I am doing simple hover
All, I'm trying to use the jQuery File Upload Demo: http://blueimp.github.com/jQuery-File-Upload/ My question is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.