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
XML Parsing Error: XML or text declaration not at start of entity
15/07/2008
09:53
Avatar
longmaomao
Member
Members
Forum Posts: 6
Member Since:
15/07/2008
sp_UserOfflineSmall Offline

Hello,

   I'am trying to use Jqgrid

   Now i have one proble, i got the error "XML Parsing Error: XML or text declaration not at start of entity"

   i have user the "header"

   i don't know whether it is beacause that i have used zend framework, i have just the "action" mais not "somephp.php"

for exemple:

    jQuery("#list").jqGrid({
                            url:'/support/app',

.............

 please help me, thank u

15/07/2008
10:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

IMHO this is not jqGrid problem.

googling you can find a lot solutions one of them maybe is here

Regards

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.

15/07/2008
10:12
Avatar
longmaomao
Member
Members
Forum Posts: 6
Member Since:
15/07/2008
sp_UserOfflineSmall Offline

thank i tony, i will read it

can i ask another question:

i tried also the "json", i have one row in the data base, the encoding "json" return me:

{"page":null,"total":1,"records":"1","rows":[{"id":"1","invdate":"2008-07-25","name":"toto","amount":"0.00","tax":"0.00","total":"0.00","note":"ffffffffffffffffffffffffffffff"}]}

this line is in the bottom of the page

but in my grid, there is nothing. What could be the problem please?

16/07/2008
04:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Did you see something strange in the request?

”page”:null,”total”:1,”records”:”1″,”rows”:

I recomment to enlose the values in barkets

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.

16/07/2008
04:44
Avatar
longmaomao
Member
Members
Forum Posts: 6
Member Since:
15/07/2008
sp_UserOfflineSmall Offline

thank u, i have seen that.

my problem is, i use the zend framework, l'architecture MVC, so i have the actions, for exemple:

              url:exemple.php

for me i have to use   url:/mycontoller/myaction

i can see the header/footer of the table, i cannot put the data in the grid.

i have tried all the méthode, no sucesse!

i am so sad, i am eager to use this in my project

any ideas?

16/07/2008
05:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

This type of passing parameters is not suported in jqGrid

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.

16/07/2008
06:03
Avatar
longmaomao
Member
Members
Forum Posts: 6
Member Since:
15/07/2008
sp_UserOfflineSmall Offline

thanks a lot although, that is really a nice application, i hope that will be developped one day for the user of "strut" and "zend framework".

16/07/2008
06:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

If you have interest you can easy extend this and I will help you to do

that

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.

16/07/2008
12:32
Avatar
jmdavid
Member
Members
Forum Posts: 5
Member Since:
18/11/2007
sp_UserOfflineSmall Offline

I use Zend Framework and Jqgrid without any problem:

url:"/intranet/contact/list?nd="+new Date().getTime()

works perfectly well for me...

14/11/2008
06:01
Avatar
palobo
Portugal
Member
Members
Forum Posts: 41
Member Since:
13/11/2008
sp_UserOfflineSmall Offline

Hi all

Fortunately this is rather easy to acomplish using Zend Framework.

If you use mtype: 'GET' in jqGrid, then use

$page = $this->_request->getQuery('page'); in your Zend action.

If you user mtype: 'POST' in jqGrid, then

$page = $this->_request->getParam('page') in you Zend action.

Hope this helps somebody!

Cheers

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
58 Guest(s)

Currently Browsing this Page:
1 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