ajax - jquery .html load external file through object data is not working -
This object is working instead of data, when I try to do my own external file url (loading)?
that is:
$ ("# loadExtPage01"). Html (& lt; Object data = "http: // gmovdevk2pocapp: 81 / runtime / runtime / form / marketing service service ticket editing farm? FormID = 1 and serviceticate_c = 21 and serviceticateID = 7 & ServiceTypeId = 2" / & Gt;); Any ideas / solutions?
Just need to wrap it in the code in the string :)
$ ("# LoadExtPage01") Html ("& lt; Object Data = 'https: //system.netsuite.com/pages/customerlogin.jsp? Country = Americas' / & gt;"); The method requires a string, what you were doing was actually invalid because you are not writing javascript html: D
if you need it So you can add some fallbacks to Html ("& lt; Object data = 'url' & gt; could not load & gt; gt;")
$ ("# loadExtPage01"). Html <>
If the resource can not be received, then whatever is inside the object tag will be shown. If you also have an appropriate solution, iframe:
& lt; Iframe src = "https://system.netsuite.com/pages/customerlogin.jsp?country=US" & gt; & Lt; / Iframe & gt; Keep it in your html, in this case Javascript is not required. If not found, you will get the original resolution error of your browser, I tried to use my local host URL:
Comments
Post a Comment