Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Is it possible to render local XML file in the grid
19/12/2008
20:35
Avatar
MikeS
New Member
Members
Forum Posts: 2
Member Since:
20/12/2008
sp_UserOfflineSmall Offline

I'm a newbie just getting into jquery and HTML and I've been trying for hours now to make this grid show data from a local (i.e., on my hard drive) XML file and I cannot do it.

I've read all of the other messages dealing with this issue and none seem to come up with a solution (that I can determine anyway). I've read the documentation (online version just to be sure that I'm reading the most up-to-date stuff) and tried using it's samples and they too fail to work for me. The most success that I've had so far is that I've been able to use datatype: 'xmlstring' to see the data in the grid, but, I'd really like to get it to work by reading a local XML file.

Just to let you know, I'm not using a server to do any of this stuff. No PHP, SQL server, etc. I'm not doing this for a web site. What I've got is a web browser control hosted on a form. The former is used to render HTML that I'm feeding it via its navigate() method, but, I digress...

Can someone please:

1) Tell me straight out if it is even possible for this grid to simply read the XML file from a folder location that I set. I'm thinking not since the samples would have show this but I hope that I'm wrong. Is it something to do with browser security? I'm using IE7.

2) If it is possible could you please post a working example of how it must be done.

TIA,

Mike

20/12/2008
03:24
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Mike,

You will never have succes with this (in your case) if you use IE. IE does not like to read local xml files. If you use this in FF - all will be ok.

I recommend you to check jQuery google group about this problem.

Some hint from me:

http://groups.google.com/group.....4564dd801e

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

20/12/2008
09:43
Avatar
MikeS
New Member
Members
Forum Posts: 2
Member Since:
20/12/2008
sp_UserOfflineSmall Offline

Thanks for the quick reply Tony.

So reading a local XML file in IE is a dead end then. I'm not sure what is being done in the "hint" that you've given. I'll have to dig into it some.

The alternative that I've got is to use the tabletoGrid function to convert an HTML table. I've been able to do this but was wondering if the other options like paging can be applied to it. How?

Mike

23/12/2008
03:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

If I see the code contributed from Peter Romianowski it seems that we can not use the pager. If you use this function you can easy add this functionallity by adding the neede parameters (like pager and other ) to the function and pass it to jqGrid when it is constructed.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
96 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information