Why does my page.xml file not change the layout of the homepage?? It changes the layouts of the other pages, but not the homepage. Does the homepage have its own layout xml file??
All my previous projects have had this workflow on Contact pages
User submits form
Controller gets $_POST details
Controller validates details (and sets error messages if necessary)
Controller sends email
Controller redirects to thanks page
Is this the standard workflow?
I used to validate everything in controllers, and then did some more reading and they recommended against it. Therefore, should I send the $_POST details to a helper type object and let it do all the work (validation/sending)?
I need to check if an element is x pixels from the bottom of the page, to dynamically load new content. currently, scrollTop and height do not match even if the bar is on the bottom.
jquery is allowed, although basic javascript would be more helpful.
My site has an iFrame that displays content from and second site. I don't control the second site. When a user clicks on a link in the iFrame, I want it to redirect the entire page, not just the iFrame.
I've seen solutions for doing this from the iFrame, but I need to do it solely from the parent. I'd prefer to do it in the code behind, but a javascript solution would be acceptable.
I have about 10+ iframes in a page, and it's slowing down Firefox3.6.x substantially.
Is there anything I can do about this? i.e. modify the DOM somehow, or suspending certain events etc etc ?
I was given this chunk of code to place in my html page but I know nothing about javascript so I have no idea where to place it and what kind of tag to place it in.
Can someone please help me.
Thanks
Code:
$('input[type=radio]').change(function() {
$('input[type=radio]').each(function(index) {
$(this).closest('tr').removeClass('selected');
});
$(this).closest('tr').addClass('selected');
});
Is there a widely supported video playback technology for web pages that provides an event/hook that can be captured from Javascript when playback reaches the end of the stream?
My goal is to provide a web page that plays a video and then asks the user a question about the video once playback is complete. The question would be hidden or disabled until they have actually viewed the video.
i'm trying to open popup window this this jscript:
window.open(myUrl, "");
for some users the page appears in a new tab, but I want it in a popup window.
maybe someone know any reason for it?
’ showing in page in place of this '
what is the problem? how to solve
This is already defined in
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Hi,
I want to add a print option to the mozswing so I can print the page from it.
I've used the MozillaAutomation.renderToImage() to get the image and then print it but it does not give me what I'm looking for.
Can anyone please tell me how to do it.
Thanks,
uhs
Hi, what is your preferred method to maintain state of an asp.net page, if it is a public website (involving shopping cart, wish-list etc). I am in the process of designing a website that will need to ensure that the user is not able to tamper with the state (such as delete cookies etc).
I'm using "visibility:hidden" to hide certain elements, but they still take up space on the page while hidden.
How can I make them totally disappear visually, as though they are not in the DOM at all (but without actually removing them from the DOM)?
I have a WPF webbrowser control which navigates the user to a registration site. After the user registers, a collection of headers are sent back alongwith the "finished registration" page.
I have tried the Navigated event, and tried accessing WebResponse property in the event arguments but it's always null.
Is there any other way to access the headers sent?
I have a field ,if user enters data it should go and check db if it is present it should redirect to next page.
But here i m not sure whether it is checking the db but mysql query is correct.
$ThirdPartyCategoryName =$_POST['ThirdPartyCategoryName'];
$activate = mysql_query("SELECT * FROM `thirdpartycategorymaster` WHERE `delete` = 'y' ");
if($activate=='y')
{
header("location:catact.php");
}
else
{
//$activate=='NULL';
header("location:tp_home.php");
}
I have a page, called foo.aspx and i d like to rewrite the url as bar.something
How to do this? How does url rewrite happens in asp.net
Should i create a generic handler?
or should i get some url rewrite modules and add to app?
Is there a way to use javascript to determine how long someone was looking at my webpage before they closed their browser or hit the back button? Something like send a message to php page every few seconds or so in the background?
Hello everyone
I hope to to drag a text string and its hyperlink from an HTML page to a TEdit.
For example
displays aaa
actual string is aaa
I try to use drag&drop vcl, but founf that it only can catch aaa itself rather than the string and its hyper link.
Welcome any comment
Thanks
interdev
Hi, i have two site that are app1 and app2. if user request a resource in app2, in order to authenticate, i like to redirect login page which is in app1. once authenticated over there, return back to app2.
can you please tell what are necessary steps
I used to use a plugin that would give me the option to remove a page from the top navigation but still appear in the side navigation but for the life of me I cannot remember the name of it and I have too many pages for the all to be displayed in the top nav.
Can anyone help me?
Thanks
Hi all,
I am creating a search page using asp.net[c#] with jquery.
Needs:
If we are typing a word in the text box, for each letter it has to display the related word in the database.
ex:
step 1. w [display: world
Whole]
step 2: wor[display: World]
How to achieve this using jquery
Geetha.
Can anyone help me? I want to create a search button that will search a word in more than one text file stored on the disk and want to dispaly the corresponding text file in a jsp page.
I'm not sure what the best way of populating a notification page is. I've been using sessions to populate it with information, but this falls short if the user is blocking cookies. I've considered passing it in HTTP GET variables, but I'm unsure whether it's a good alternative since its length is limited by some browsers.
Which method do you prefer?