javascript,jquery,ajax,json,internet-explorer-8Related issues-Collection of common programming errors


  • Elisabeth
    javascript iphone ipad orientation
    I’m having the same problem that a couple of others have had with getting the correct behavior in a web app on an orientation change, and there doesn’t seem to be an obvious solution – I’ve seen this question asked a couple of times on Stack Overflow and no one’s yet been able to answer it.When I start the app in portrait mode, it works fine. Then I rotate into landscape and it’s scaled up. To get it to scale correctly for the landscape mode I have to double tap on something twice, first to zoo

  • Ulker Ibrahimova
    javascript jquery file-get-contents
    This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://

  • shoriwa-shaun-benjamin
    java javascript android cordova webview
    I am trying to get my cordova webview to work with cordova 3.2 an use the phonegap Camera API to access the camera.Reference: Android WebViewsHere are some successful implementations of what I want to do, but these use Phonegap 1.9, i want to use Phonegap 3.2 (the latest one)Cordova WebView using AndroidAlso here’s a VideoWith the code below I am able to make the cordova webview display my index.html page without any issues but when I to access the camera by clicking on “Capture Photo” in my HTM

  • Inator
    php javascript apache nosql couchdb
    I’ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb/(.*)$ http://127.0.0.1:5984/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https://api.domain.com/endpoint/?timestamp=[timestamp]&signature=[signature]&id=[id]…etcEach

  • novicePrgrmr
    java javascript ajax json jsp
    I am sorry to ask this but i’ve been working on this for hours and I can’t figure it out on my own. I have to use json for part of a project and I was able to get it to work but now it’s not returning it back to the right jsp but instead just displaying the json jsp. I am pretty sure it is how I am receiving the json.here are screen shots of what is happening:this is the jsp that I need to use ajax on, I am wanting to populate the second dropdown using ajax:this is what is happening instead, (it

  • Andrew Whitaker
    javascript regex
    I am trying to build a regexp from static text plus a variable in javascript. Obviously I am missing something very basic, see comments in code below. Help is very much appreciated:var test_string = “goodweather”;// One regexp we just set: var regexp1 = /goodweather/;// The other regexp we built from a variable + static text: var regexp_part = “good”; var regexp2 = “\/” + regexp_part + “weather\/”;// These alerts now show the 2 regexp are completely identical: alert (regexp1); alert (regexp2);/

  • DOTang
    javascript regex
    I am searching for text inside of website resources (html and javascript), and need to identify 3 regular expressions that will locate this text under certain circumstances:some string of text when it is contained inside of a javascript single-quoted string some string of text when it is contained inside of a javascript double-quoted string some string of text when it is not contained inside of a javascript stringHere are some scenarios that are likely to occur (searching for the string “somestr

  • Andy E
    javascript html
    I’m building up a row to insert in a table using jQuery by creating a html string, i.e.var row = “”; row += “<tr>”; row += “<td>Name</td>”; row += “<td><input value='”+data.name+”‘/></td>”; row += “</tr>”;data.name is a string returned from an ajax call which could contain any characters. If it contains a single quote, ‘, it will break the HTML by defining the end of the attribute value. How can I ensure that the string is rendered correctly in the brow

  • sameer
    javascript angularjs maven yeoman
    I have recently integrated maven yeoman plugin with my app. I followed https://github.com/trecloux/yeoman-maven-plugin/blob/master/TUTORIAL.md My angular version is v1.2.3 . When I run the mvn clean install command, I get the following error . [email protected] node_modules\grunt-contrib-imagemin ?ö£?öÇ?öÇ [email protected] ?ö£?öÇ?öÇ [email protected] ([email protected], [email protected]) ?ö£?öÇ?öÇ [email protected] ([email protected]) ?ö£?öÇ?öÇ [email protected] ([email protected]) ?ö£?öÇ?öÇ p

  • Ronald Yeung
    javascript jquery ajax json cors
    What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.

  • Ulker Ibrahimova
    javascript jquery file-get-contents
    This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://

  • Mitesh Vora
    jquery html css ellipsis
    I tried looking here Insert ellipsis (…) into HTML tag if content too wide but could not get in chrome to work. I there solution for multiline in all browsers??

  • Ronald Yeung
    javascript jquery ajax json cors
    What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.

  • Mac-Gon
    javascript jquery html5 css3 navigation
    I’ve been reading lots of the other posts, and no doubt it’s my inexperience with jQuery that is giving me trouble, but there are lots of things close to what I’m trying to accomplish. I have a div where I have a vertical navigation set of buttons. Inside that I want the other divs (child divs) that will be shown or hidden based on the navigation button clicked by the user. I want all of these divs to be in the same location on the screen…so, basically like a tabbed form but with vertical navi

  • user2023507
    jquery spring twitter-bootstrap spring-mvc thymeleaf
    I have following code : public class StudentController extends BaseController {@RequestMapping(value = “/student/edit”, method = RequestMethod.POST)public String submitForm(@Valid @ModelAttribute(MODEL_ATTRIBUTE_STUDENT) StudentDTO edited,BindingResult bindingResult, RedirectAttributes attributes) {if (bindingResult.hasErrors()) {return STUDENT_EDIT_FORM_VIEW;}//some logic…}@InitBinder public void initBinder(WebDataBinder binder) {SimpleDateFormat dateFormat = new SimpleDateFormat(“MM/dd/yyyy”

  • Liam Bailey
    javascript jquery history.js
    On this page: http://www.kastenreus.nl/onze-kasten/ we have the filters down the left hand side, we are having a problem with the link filters under Verfijn uw wensen, if you watch the console you can see it is firing 2 requests, the first one is what the content is loading in from, when it is the second we actually need.This is the click binded event:jQuery(“.codenegar_product_filter_wrap ul li a”).live(“click”, function(e){e.preventDefault();var $this = jQuery(this);if($this.attr(“data-key”) =

  • thealexbaron
    jquery css
    Click “Rate” – that should pop up a normal boxy dialog, but styles aren’t working. Any ideas?Here’s the working example on the site: http://www.great-quotes.com/boxyTest.htmThe official boxy docs: onehackoranother.com/projects/jquery/boxy/.boxy-wrapper { position: absolute; } .boxy-wrapper.fixed { position: fixed; }/* Modal */.boxy-modal-blackout { position: absolute; background-color: black; left: 0; top: 0; }/* Border */.boxy-wrapper { empty-cells: show; }.boxy-wrapper .top-left,.boxy-wrapper

  • lokisapocalypse
    jquery jquery-ui accordion sortable
    This is my first time posting so please let me know if I fail to provide enough details. I have a page that contains multiple accordions. I wanted to use multiple accordions because I wanted users to be able to have multiple sections open at once which is not native to accordion. I also want users to be able to sort those accordions. The way the page is currently set up, users can sort the accordion with no problems. When the user goes to sort the accordions, I have a script that will close all

  • CQM
    jquery android webview sencha-touch
    Is there a better webview for android? Google’s own documents mention not to rely on the webview object.But for using webkit it seems strange that it is so limited, compared to other webkit browsers used on mobile devices with comparable hardware.This is evident in jquery mobile implementations, or similarly sencha touch implementations for web apps. The Android version suffers slowdowns, rendering issues, and a poor user experience, where other mobile devices – like an iphone – will run it fine

  • jmort253
    jquery xml
    How would I go about parsing XML cross-domain? Could someone provide an example? The example doesn’t have to be restricted to only jQuery, as JavaScript will also suffice.

  • novicePrgrmr
    java javascript ajax json jsp
    I am sorry to ask this but i’ve been working on this for hours and I can’t figure it out on my own. I have to use json for part of a project and I was able to get it to work but now it’s not returning it back to the right jsp but instead just displaying the json jsp. I am pretty sure it is how I am receiving the json.here are screen shots of what is happening:this is the jsp that I need to use ajax on, I am wanting to populate the second dropdown using ajax:this is what is happening instead, (it

  • John Smith
    ajax jsf jsf-2 primefaces radio-button
    When I try this code after loading the index.xhtml page which is my welcome page(and which have page strana1.xhtml initialy included as content of p:outputPanel “sadrzaj”) and clicking on button “Napred”(means Forward) everything works fine and I got the ajax update of p:outputPanel id=”sadrzaj”(page strana2.xhtml loads and replace page strana1.xhtml inside of index.xhtml page, under p:outputPanel “sadrzaj”). But after that any change of radioButtons(which are part of page strana2.xhtml) doesn’t

  • Ronald Yeung
    javascript jquery ajax json cors
    What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.

  • stanleyhope
    javascript ajax ssl internet-explorer-8
    The problem: I have a site with a recently installed SSL certificate that is very dependent on POST calls over AJAX. The site worked fine on Internet Explorer 8 before the SSL certificate, but now does not.Since I haven’t been able to get a good way to read any error messages, I haven’t been able to pin down where the bug is coming from. I will try to list as much as I know/ have figured out, and I greatly appreciate any suggestions.What I know:On IE8, the site will not perform any AJAX POST cal

  • BLSully
    c# javascript .net ajax sencha-touch
    This is kind of a 2 part question:1) What is the better approach, letting .NET convert native objects into JSON, or using wrappers and encoding them myself (e.g. public string DataTableToJSON(DataTable))2) If the answer to the first question is the former approach, how best to pass error conditions to the client (JavaScript AJAX requests, generally with jQuery or in this specific case, Sencha Touch (Ext))? My current method (explained further down in this question) seems to work fairly well, but

  • BenSwayne
    c# ajax asp.net-mvc signalr
    I have an ASP.NET MVC3 application.If my application had a large number of users – let’s say 100,000 – hypothetically, if all users were talking to each other and I used SignalR, would there be 100,000 long polling connections? Would these cause some sort of denial of service? Should I be using AJAX HTTP instead? Or would SignalR be smart enough to release the connection to resource pool when no activity is found for certain period of time? When would using signalR for chat be recommended for ch

  • Brent Klein
    php sql-server ajax cakephp pdo
    I’m working on a very simple utility using CakePHP 2.4.6 and PHP 5.4.16 (a full breakdown of my environment is below). The database is a legacy MS SQL database hosted on AWS. I was able to get everything involving PDO configured in such a way that the app is connecting to the database successfully and both pulling and updating records.My main controller presents a view to the user containing relevant records pulled from the database. Each record has a simple associated form with a single check

  • George
    php ajax codeigniter progress invoices
    OK so I’m coming to the stage of a current project where I will be implementing invoicing, and thinking about it I thought I would see how you guys would approach this problem. If it’s relevant, I’m using CodeIgniter, jQuery, jQuery UI and I have complete control over the server, running PHP 5.3 and Apache 2.2.16. Production server is running Debian Squeeze.So my query is this.The app I am developing will handle invoicing Invoices can be produced one by one, or in a batch (from a date range) All

  • STi88
    ajax extjs combobox extjs4.1
    I am trying to get ExtJS combobox to return value instead of display value.Here’s my problem. I am using ajax to get the data for the combobox field, and in the same time using getForm().load to load the selected values for the combobox. In the model I’ve return a display value and code value. Display value is assigned to ‘name’ and code value is assigned to ‘hiddenName’. When I submit the data, the display value is being submitted not the code value from ‘hiddenName’ field.After changing th

  • balupton
    javascript jquery ajax html5
    I recently found this gist on how to Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo: https://github.com/browserstate/ajaxifyI am having a hard time getting a simple version of this working and am not sure I understand everything. First, I loaded all the scripts provided in the gist, then set up a really simple nav and content section:<ul id=”nav”><li id=”home-link”><a href=”/” title=”Home”>Home</a>/</li><li id=”work-link”>&l

  • guyja
    python json python-requests
    I’m using python-requests to work with an elasticsearch index. In particular I’m not getting what I want from requests.json() (wraps the json.loads() function in the standard lib). I’m struggling with the result returned by the json() method. It seems to be returning a list of strings. I want a dict object that I can loop through to access each members attributes i.e…r = requests.get(url) results = r.json() //same as results = json.loads(json string) print(results)for result in results:pri

  • erj2code
    java json spring properties apache-camel
    I have a HelloWorld Java project that uses Camel to obtain a Map, and print out its contents in JSON format. The Map currently has hardcoded values, but I really want to change my code so that it uses Spring to load a sensor.properties file of nested key,value pairs into this Map.I have another Java project I wrote that only uses Spring, and can load the sensor.properties file just fine into an Arraylist object.However, when I try to use code from that project to load the sensor.properties in m

  • cmnunis
    android json wcf sql-server-2008
    I am currently developing an Android app that gets details from an SQL Server table. Thanks to everyone who has helped previously with my understanding of AsyncTasks and JSON, I can now retrieve objects. However, my attempt at updating tables from an Android device is not so smooth. Firstly, I’ll begin with the table: I have a JobStatus table that is populated by a trigger that runs as a new record is entered into the Jobs table. When the trigger is run, these 4 columns are populated, namely:-Th

  • Xalu
    java php android mysql json
    I am currently working on an app and I am trying to implement a user system with login/registatration. I’ve been going over several tutorials to get an idea what to do. Now I am beginng to wonder if something is wrong with my eclipse enviroment because after trying 2 or 3 tutorials (and downloading the source code to test), I keep getting the same errors.Rather than posting all the code (there is a lot)…Here is a link to the projects tutorial http://www.learn2crack.com/2013/08/develop-android-

  • jbihan
    java php android mysql json
    Immersed in the development of my program, I encounter an error that seems to me not really speaking.So here’s my logcat in the order and the java code:When I click on the item in my listview it should return me the contact information for the update.public class MajContactActivity extends Activity {EditText txtNom; EditText txtPrenom; EditText txtNummobile; EditText txtNumfixe; EditText txtEmail; EditText txtAdresse; EditText txtProfession;Button btnSav; Button btnSup;String idCONTACT;// Progr

  • Christopher Armstrong
    java json rest jersey grizzly
    I want to implement JUnit tests for Jersey REST/Json in to my application. My problem is that I get a 404 not found back from Grizzly. But the path is correct and tests with Curl over the normal Webcontainer are working.I’m using GWTP (without maven). I’m implementing the libraries by hand Properties -> Java Build Path. I’m using following Versions:Eclipse Indigo (on Windows 7) asm-3.3.1.jar jersey-client-1.12.jar jersey-core-1.12.jar jersey-json-1.12.jar jersey-server-1.12.jar jersey-servlet-1.

  • naffie
    android mysql json sqlite
    i have a nested JSON Object as follows :[{“question_id”:”1″,”description”:”What is your gender ?”,”widget_id”:”1″,”answers”:[{“answer_text”:”Male”,”answer_id”:”1″},{“answer_text”:”Female”,”answer_id”:”2″}]},{“question_id”:”2″,”description”:”Which animal best describes your personality ?”,”widget_id”:”2″,”answers”:[{“answer_text”:”Cat”,”answer_id”:”3″},{“answer_text”:”Horse”,”answer_id”:”4″},{“answer_text”:”Dove”,”answer_id”:”5″},{“answer_text”:”Lion”,”answer_id”:”6″},{“answer_text”:”Chameleon”,”

  • safari
    android json login http-post httpresponse
    What I try to doI’m trying to create a Loginmask for my App. To check if a userslogin is correct I create a HTTP-Post(JSON) to my server, from there I get response if the user is in the db-table or not.For the moment the HTTP-POST dosn’t work, I allways get this Error:12-26 14:02:22.871: W/System.err(869): java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, host=null, path=api.i-v-o.chThis seems really strange in my eyes because i defined the URL-Pat

  • tjholmes66
    json rest date smartgwt
    I am using Spring 3.2 MVC Controller and a Spring-WS to create a RESTful web-service. The Spring controller accepts an object files an update to the database correctly and then returns JSON to the front-end. The Spring Context is set for message converts for JSON. I have Unit Tests for these, so I know the Spring Controllers are working and are filing data accordingly.The error, actually a warning, comes when I get the data/JSON back from the web-service:10:05:08.906[ERROR[Phonebook]10:05:0

  • novicePrgrmr
    java javascript ajax json jsp
    I am sorry to ask this but i’ve been working on this for hours and I can’t figure it out on my own. I have to use json for part of a project and I was able to get it to work but now it’s not returning it back to the right jsp but instead just displaying the json jsp. I am pretty sure it is how I am receiving the json.here are screen shots of what is happening:this is the jsp that I need to use ajax on, I am wanting to populate the second dropdown using ajax:this is what is happening instead, (it

  • stanleyhope
    javascript ajax ssl internet-explorer-8
    The problem: I have a site with a recently installed SSL certificate that is very dependent on POST calls over AJAX. The site worked fine on Internet Explorer 8 before the SSL certificate, but now does not.Since I haven’t been able to get a good way to read any error messages, I haven’t been able to pin down where the bug is coming from. I will try to list as much as I know/ have figured out, and I greatly appreciate any suggestions.What I know:On IE8, the site will not perform any AJAX POST cal

  • Josh Unger
    javascript internet-explorer canvas internet-explorer-8 easeljs
    I am using EaselJS and want to allow for backwards compatibility with ExplorerCanvas.This should be possible using the following code (see here): createjs.createCanvas = function () { … return canvas implementation here … }However, If I put an alert in this function and run the code, the function is never run.How do I go about getting this to work?Edit:Here is a simplified example of the code I am using:<!DOCTYPE html> <html lang=’en’> <head><meta charset=’utf-8′ />&l

  • Swashata Ghosh
    javascript jquery internet-explorer-8
    I am trying to implement ECMA262-5 array method indexOf for browsers older than IE9. So far, I am using jQuery 1.10.2 and I have this code in my own jQuery plugin:if($.support.opacity === false) {$.getScript(iptPluginUIFFront.location + ‘js/ie8.js’); }The ie8.js has the following code, which I got from here.’use strict’;// Add ECMA262-5 method binding if not supported natively // if (!(‘bind’ in Function.prototype)) {Function.prototype.bind= function(owner) {var that= this;if (arguments.length&l

  • Michael Zelensky
    javascript debugging internet-explorer-8 internet-explorer-7
    I am new to a project in mature stage. There are many JS scripts and libraries on one of the pages, jQuery is used intensively. There is a weird error in IE7/8 only: somewhere in the middle of the page scripts execution jQuery object becomes undefined, so everything else stops working.There are two scripts specified in the middle of HTML, say, like this:<script src=”script1.js”></script> <script src=”script2.js”></script>In the end of the script1 a variable called jQuery

  • montss
    javascript gwt internet-explorer-8
    I’m trying to write a Javascript function inside a Java GWT code that gets the value of the following styles”direction”, “fontFamily”, “fontSize”, “fontSizeAdjust”, “fontStyle”, “fontWeight”, “letterSpacing”, “lineHeight”, “padding”, “textAlign”, “textDecoration”, “textTransform”, “wordSpacing”The getComputedStyle was useful in all browsers except IE8 which doesn’t support such function as I understandI looked at the posts about smiler subject here but all of them failed to get one of the above

  • Henrik
    gwt caching internet-explorer-8
    I experience a problem with GWT 1.6 in IE8 (I have enabled native XMLHTTP support). The scenario i this: The first time I enter a page, it renders fine with no problems. But in subsequent requests, the page fails with a JavaScript error: Message: Exception thrown and not caught Line: 5067 Char: 237 Code: 0 URI: http://someurl/somehashcode.cache.htmlIt happens in both standard mode and compatibility mode. The strange thing is that I do not experience the error when I run the application on localh

  • identify
    internet-explorer extjs internet-explorer-8 extjs4 sencha-touch
    I Have design a sencha app that is running fine enough on chrome and mozilla. but it’s not working with ie8 and i have to test it on ie8 also for my client. it’s working fine on higher version of ie like ie9 and ie10 is there anyone who can help me to make it compatible with ie8.

  • Adrian Salazar
    javascript internet-explorer internet-explorer-8 underscore.js
    I’m having an issue understanding the mechanics of typeof in IE8.I have the following JavaScript code in “parent.html”:var myNewWindow = window.open(‘child.html’); myNewWindow.sayhi = function() {alert(‘Hi!’); }In parent.html we open a JavaScript console (F12). We test the type and looks correct.typeof myNewWindow.sayhi “function”But if I open a console and do some tests in the child window, the results are somehow weird.typeof this.sayhi “object”The thing is that the “object” c

  • Andrew K
    javascript internet-explorer-8
    I have a pop-up that allows the opener window to optionally define a callback function, which if defined will be called when the user is done with the pop-up. Based on the advice I’ve read I’m doing this:if (window.opener && (typeof window.opener.callbackFunction == ‘function’)) {window.opener.callbackFunction() }This works fine in Firefox – when the function is defined, the typeof is “function” as intended. However, in IE8 the typeof is “object” instead. The function is defined normally

  • 280Z28
    windows-7 flash internet-explorer-8
    Whenever I view a page with Flash on it (example www.fox.com), if I move my mouse around the page flickers intensely – like siezure inducing flicker. Is this a known issue, and is there a way to fix it?Windows 7 RTM x64 IE8 Flash Player, Acrobat Reader, Shockwave Player are all I installed Consistent across 3 very different machines (AMD ZM-82 + Radeon HD3200 laptop, Core i7 + NVidia GT220 desktop, P4D + NVidia 6400GT desktop), but all with the above software.

Web site is in building