Returned data from a Script shows select option behind Boostrap Modal on Laravel - laravel-5

I have a simple JavaScript that retrieves set of data from my database and returns the result on my blade page Bootstrap Modal, however, as I enter the keyword value to retrieve, the select option result appears behind the modal form. How can I show it in front or within the modal? I adjusted the height of the modal but still the same.

Related

How to pass data from one page model to another page model in fresh mvmm

I have used Fresh MVMM. I need to pass a data from one page model to another page model without using init and reverse init.
Eg: I have one toggle button in first content page.
I need to toggled the button based on the selection in second popup page without popup the second PopPopupPageModel.
ReverseInit is worked when popup the second PopPopupPageModel and can easily pass data.
But I need to toogled the button in first page without popup the second page.
Please help...

How to reload page with hash url using Laravel form select

I'm working on a laravel project and I notice a statement like this in a blade file:
{{ Form::select('chapter', $chapters, $chapter_id) }}
I see a drop down when I visit the page in my browser. The moment I change the drop down, the page refreshes and I see ?chapter=<some value> query string in my browser. My guess is that the <select> onchange event triggers a form submission, which is default Laravel behaviour
I want to change the behaviour such that form submission/page reload will create the following query string/url components : ?chapter=<some value>#searchresults. What's the Laravel approach to include the #searchresults hash phrase as part of the form submission / page reload?

Retrieving parent page grid with javascript

I have a parent page that opens a modal dialog page. Modal dialog page has jabvascript in the header that retrieves grid information from parent page using the following javascript:
var ig$ = apex.region("pg_2_ig_grid").widget(),
view = ig$.interactiveGrid("getCurrentView");
apex.region("pg_2_ig_grid") returns null so I get an error. Not sure why this is happening. I also tried adding javascript to shared components but getting the same error. How can I access a grid on page 2 from modal dialog page 3?
I have not tested it, but try to put "parent" at the beginning of each javascript statement that should do something on the parent page. "parent.apex.region..."

Joomla modal popup target url does not get session value

I have a problem regarding modal popup and session.
I have two component name test and test1 respectively.
In test there is a form in view in which i put "Anchor" tag with "modal" class. has also class name "class1".
When i clicked on Anchor tag it call click function(on click "class1") in which i put ajax code for set data using "Session".
$('.test').click(function(){
// Ajax code here for set data using session
});
with above function it also called modal popup. here targer url is seted which is the view of 2nd component which is "test1".
Here in test1 there is a view.html , we are getting session data here and displaying in view.
PROBLEM
Problem is that , here in 2nd component , in view i am getting session data but i need to click on button two time , only after i getting data properly.
When i click on it give me a old session data. and when i click on it second time it will give me a proper data.
What is the solution for above problem. if anyone know please let me know.
Session data is altered only after we click on Anchor tag.
Both thing is done on Anchor click , one is for set data in session and second is for modal popup. in popup i am getting data which set in session.
when is the session data is being altered?
Is it altered by ajax call too?
In this case, javascript, is unsynchronous. It doesn't wait for something to happen in order to fire the next line of code. In that case there are several techniques you may find to do so.

How to filter page content according to dropdown box selection in cakephp 2.x

I have a select box in my view.ctp , it shows some content from the controller, but my problem is i want to load content dynamically according to the droapdown selection
i tried with making ajax request on onchange of selection in the select box. but the problem is ,the select box id is sending to the controller function, their i set the content for display .but the page is not refreshing..
I dont know which logic sholud use for this purpose..if anybody have an exerience with this..please replay me..
In order to achieve those results you should follow the next steps:
Create an action that returns the content with $this->layout = null
Create a view for this action that displays the content in the way you desire (html with no css)
In the view that you like to fetch that content through AJAX make a request that pulls that controller and view
append it where you want it on your page (with proper css on the page you make the request it will display correctly)

Resources