newbie question alert! :)
I am trying to convert this JavaScript that is loaded on the page to a PHP script as in IE 8 the values are not loaded.
This is the part of .js that I want to convert
$(document).ready(function() {
var user = loadCurrentUser();
var user_id = user['user_id'];
$('form[name="updateAccount"] input[name="email"]').val(user['email']);
I tired several versions of php code but nothing seems to be working.
Any help would be highly appreciated!
1 Answer 1
You cannot simply convert this JS snippet to PHP. Instead, you'll need to debug why this isn't working in IE8. I suspect it has something to do with the loadCurrentUser() function.
answered Feb 5, 2015 at 21:20
Blake Frederick
1,70023 silver badges32 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default
loadCurrentUser()function does. But anyway, I'm sure the smarter way is to solve the IE8 issue.