Bug Tracker

Modify

Ticket #4093 (closed bug: invalid)

Opened 5 years ago

Last modified 2 years ago

In case of space in query string, then contents of dialog will not be loaded in dialog by load method

Reported by: skrshetty Owned by:
Priority: major Milestone: 1.3.2
Component: plugin Version: 1.3.1
Keywords: UI Cc:
Blocking: Blocked by:

Description

For example

$('<div id="demo3">').load('pag1.html?country= united kingdom').dialog({ ..

Then only dialog get launched and not the contents of html file page1.htm inside that dialog.

Attachments

index.html Download (4.9 KB) - added by skrshetty 5 years ago.
Modified your example with query string to replicate the bug. none of the dialog will not be loaded with data

Change History

Changed 5 years ago by skrshetty

Modified your example with query string to replicate the bug. none of the dialog will not be loaded with data

comment:1 Changed 5 years ago by skrshetty

Its happenning because URL encoding is not happening in load() function.

comment:2 Changed 5 years ago by skrshetty

$('<div id="demo3">').load(escape('pag1.html?country= united kingdom')).dialog({ ..

will work fine..

comment:3 Changed 5 years ago by dmethvin

If you are referring to UI dialog, a bug should be opened in the UI bug tracker. See the big red box at the top of the new ticket page for a link.

comment:4 Changed 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

comment:5 Changed 5 years ago by dmethvin

On further review, the issue with this is definitely in load but that method is documented to use the space to separate the url from an (optional) selector that is applied to the returned html/xml:

 http://docs.jquery.com/Ajax/load#urldatacallback

I've updated the documentation to clarify.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.