Search found 17 matches

by publicGenome
Thu Dec 03, 2015 2:31 pm
Forum: JavaScript
Topic: Laravel: sending JSON - jqgrid - How?
Replies: 0
Views: 3188

Laravel: sending JSON - jqgrid - How?

Hi there, I'm trying to populate jqgrid from database. I've jqgrid. Laravel 4.2 I'm unable to send json data back to browser. No error, or anything. I've data pulled from DB, made it into json format. I'm going to post 4 code snippets: 1. jqgrid 2. routes.php -relevant 3. controller - used 4. model ...
by publicGenome
Wed Dec 02, 2015 2:42 pm
Forum: JavaScript
Topic: AJAX GET request: 404 error
Replies: 3
Views: 2244

Re: AJAX GET request: 404 error

Hi, Update: I fixed this. There was a file named: unneccessary.htaccess I renamed it to .htaccess It has contents: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Co...
by publicGenome
Wed Dec 02, 2015 2:35 pm
Forum: JavaScript
Topic: AJAX GET request: 404 error
Replies: 3
Views: 2244

Re: AJAX GET request: 404 error

The url in the ajax request needs to work, the 404 means it can't find it. http://localhost/learn_app/public/illumina_xhr_get_data If you are accessing it through the framework, do you need invoke the controller or the url needs to map to the controller. Get the url working in the browser first and...
by publicGenome
Wed Dec 02, 2015 1:49 pm
Forum: JavaScript
Topic: AJAX GET request: 404 error
Replies: 3
Views: 2244

AJAX GET request: 404 error

Hi There, I'm trying to navigate to controller using ajax/Jquery. Get data using ajax, and populate in jqgrid. My code for Jquery, looks like: $(document).ready(function () { $("#grid_illumina").jqGrid({ url:'illumina_xhr_get_data', //url datatype: "json", //get json data mtype: "GET", //type jsonRe...
by publicGenome
Wed Dec 02, 2015 6:29 am
Forum: PHP General
Topic: Laravel: reach controller without refresh
Replies: 4
Views: 1655

Re: Laravel: reach controller without refresh

Personally, I've never used Laravel, but you would want to add an AJAX call in your view. However I re-read you original post and you said you have a navbar and when you click on it, you want to navigate to a new page without the page refreshing? Yes, on click of the page in nav-bar, load that page...
by publicGenome
Wed Dec 02, 2015 4:41 am
Forum: PHP General
Topic: Laravel: reach controller without refresh
Replies: 4
Views: 1655

Re: Laravel: reach controller without refresh

element121 wrote:Use AJAX to call the controller.
Hi element,
Thanks for your reply.
How do I use that here? Any guidance would be of great help. :)
by publicGenome
Tue Dec 01, 2015 1:51 pm
Forum: PHP General
Topic: Laravel: reach controller without refresh
Replies: 4
Views: 1655

Laravel: reach controller without refresh

Hi There, I'm working on a legacy code which is wrapped in laravel 4.2. I'm trying to add on in it. I've a nav-bar, and on click of it. I'd like to reach to designated page. My code looks like: if(isset( $_SESSION['currentfunc'])){ if(substr( $_SESSION['currentfunc'], 0,strlen('illumina')) === 'illu...
by publicGenome
Tue Nov 10, 2015 6:43 am
Forum: JavaScript
Topic: jqGrid: search button - don't get pop up
Replies: 2
Views: 2131

Re: jqGrid: search button - don't get pop up

New code:

Code: Select all

	jQuery("#grid_illume").jqGrid('navGrid','#pager_illume',
			{edit:false,add:false,del:false,refresh:false}, 
			{}, {}, {}, 
			{multipleSearch:true, 
				multipleGroup:true,overlay:false} );
	jQuery("#grid_illume").searchGrid(); //this is wrong....
But doesn't help.
by publicGenome
Tue Nov 10, 2015 5:08 am
Forum: JavaScript
Topic: jqGrid: search button - don't get pop up
Replies: 2
Views: 2131

Re: jqGrid: search button - don't get pop up

a gentle bump to this post. :help:
by publicGenome
Mon Nov 09, 2015 3:19 pm
Forum: JavaScript
Topic: jqGrid: search button - don't get pop up
Replies: 2
Views: 2131

jqGrid: search button - don't get pop up

Hi There, I'm new to Jquery, JQgrid. Please pardon my naive question(s). I've a hard coded jqGrid, with 2 rows. They are being displayed on the page. So far so good. I'd like to activate the search button in the table. I'm able to get search button, but it doesn't pop-out, as a dialog box. My header...
by publicGenome
Mon Nov 09, 2015 3:12 pm
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Re: Unable to get data back from PHP to AJAX

@element
Thanks for your support. :)
by publicGenome
Wed Nov 04, 2015 2:18 pm
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Re: Unable to get data back from PHP to AJAX

element121 wrote:Did you try the last option? What result did you get?
Hi,
I just got it fixed ~30 mins back. I was including index/header/footer page if the method is present, and called.

Due to that I was getting HTML along with my JSON, thus the format wasn't JSON.
Thanks for your support.
by publicGenome
Wed Nov 04, 2015 7:46 am
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Re: Unable to get data back from PHP to AJAX

A gentle bump to this post
by publicGenome
Sat Oct 31, 2015 4:46 am
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Re: Unable to get data back from PHP to AJAX

Hi Jon, Your code is in a function, so the URL needs to map to the function, I don't see any code to do that. I'm able to get through the function via bootstrap->controller->model. But annoyingly failing to get the end result. :( If you are using MVC, do you have a PHP Framework like CodeIgniter, Sy...
by publicGenome
Fri Oct 30, 2015 5:49 pm
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Re: Unable to get data back from PHP to AJAX

element121 wrote:How are you running this, in a PHP framework?
Hi Jon,
localhost. My application redirects me to index page.
I'm learning MVC, AJAX basic stuff.
by publicGenome
Fri Oct 30, 2015 2:38 pm
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Re: Unable to get data back from PHP to AJAX

Hi, Are you getting an error message? Is the AJAX firing? If you use the inspector in Chrome, that will show you errors and the network activity for the AJAX call, that will really help in debugging the code. Yeah, you don't need the exit; to exit the function. Jon Hi Jon, Thanks for your reply. I'...
by publicGenome
Fri Oct 30, 2015 4:25 am
Forum: JavaScript
Topic: Unable to get data back from PHP to AJAX
Replies: 11
Views: 4155

Unable to get data back from PHP to AJAX

Hi Members, This is my first post to this forum kindly bear with me if I've violated any posting rules. In my application, I've a form. User enters, and hit submit - data is inserted into table. Insertion is being done using AJAX. Next I'd like to show the inserted data using AJAX GET function. Howe...