I am trying to load a fragment of one of my webpages. I am not sure if this would be the best way to do this, but thought I would try something new, and see where it gets me. I am using .load to get part of a page, like pages.php #register. It loads up properly, but then when you click on a button, for example, to submit the form, the whole page goes away. I know the answer to this is probably the iframe, but I am curious if there are any ways around this, or better ways to load fragments of a page like this.
edit: i thought this would be a nice tool to use because it looks like it resizes the page to as big as it needs to be.
I am using flexgrid, and am trying to apply it to a database of emails to list them out. To import the data into the tables currently, it uses xml, i believe. The demo file is named countryArray.inc.php. The format is as such:
<?php
$rows = array(
array('iso'=>'AF',
'name'=>'Afghanistan',
'iso3'=>'AFG',
'numcode'=>'4',
),
array('iso'=>'AL',
'name'=>'Albania',
'iso3'=>'ALB',
'numcode'=>'8',
),
How do I go from a database, to an array? Would I have to export first to a text file? Or is there another way to do this? Not sure how this exactly works.
I am using a get method, and then returning a table of records. on my php page where I am getting the data, i try to echo content, but nothing gets echoed out. so my question is, is it possible to have the php file, that is called upon, to echo content instead of returning a value?
what is the best way to show the general status of a section of a registration page? right now, there are about 5 fields. they each have their own check. then there is a check for the section itself. what is the best to verify all at once to change the section check? i was thinking a submit button, but thought the idea of automatic check would be nice. would i just run the check on everykeydown? i just thought this may slow down the browser every time the user presses a key.
i have a page of plan selections, and buttons for each plan. there are two per each (one at the bottom, and at the top) for the same plan. I would like a user be able to select one, and the css of that button plan type change, and if they select another one, revert the previous css of the one that was changed, and apply the changes to the newly selected one. would i do something like this?:
$('#buttonPlanSelect').each( function( index ) {
$(this).addClass('test'); // changes all of the buttons to the original css
// here, change the css of the selected button plan type
I am trying to have a registration page, where when you fill out one section, that section closes, and the next one opens. here is my code so far, which is not doing anything when clicked on:
I have a sidebar that open and closes on click. there are two columns. the one on the left is the main content div. on the right is the sidebar. when the user closes the sidebar, i would like for the width of the main content div to change to 800. then, when they click on it again, go back to 600px. here is what i have:
$("#closeOpenDashboard").click(function () {
$("#rightPane").toggle();
$("#rightPaneOpen").toggle();
if($('#rightPane').is(":visible")){
$("#leftPane").css('width', '600px');
} else {
$("#leftPane").css('width', '800px');
}
return false;
});
The problem with this is when I close, then open, the width stays 800px (because the div is still visible, i am guessing...), and the right nav pane is shown below.
I have a popup window in the webpage so when the user clicks on the login button, the window pops up. when the user enters their right credentials, they should be redirected to the members page of the site. the only problem is, is that I am using an iframe in the popup to show the login page, so i guess I have to close the window, then redirect in the parent? or is there a simpler way to do this?
what are elements that are supported when you use ('#idhere')?
I noticed when i used it with an image, it didn't work. then when i placed a div around the image with that id, it worked. what are the supported elements?
I am setting up an inbox, and I have two panes. one shows you your messages, and the one below it shows the details of the selected message. what would be the best way to update the second pane, upon e-mail selection?
I tried this tutorial, and copied the code directly, including the script link to the jQuery code. Are there any other causes that may lead to the code not functioning?
I have a left pane, and a right page. In the left pane is navigation. In the right pane, I have the content. When the user clicks on a link to change the content in the right pane, what would be the best way to do this?
Anything that I'm doing wrong? I can't get the alert box to pop up. mainly though, the fade ins/outs don't work. i am just seeing if it is even getting to that spot where the alert is, which it is not. would that mean that it can't find the element?
I have a form, and when the user submits it, if there are no errors, there are so fade ins/outs. i get as far as "before", but then after that, nothing else seems to happen. i have linked to the jquery link. i also have my form inside of the loginContainer div, with the appropriate id.