how to get the values inside a frame? - html

body --> div --> frame --> body --> form --> table. Need the values inside the tables.
I am using the childNode method but do not get any childNode beyond the frame.
<div class="navbar navbar-fixed-top">
<div id="content-loader-load" class="content-wrapper">
<h2 id="page-title-home-link" style="display:none">
<h1 id="page-title">Case Detail - 1186</h1>
<iframe id="iframe" frameborder="0" style="border: 0px none; width: 100%; height: 1280px; margin-top: 20px;" src="case_detail.php3?ticket_num=1186">
<html>
<head>
<body>
<iframe id="PopupNote_IFrameHostInfoNote" frameborder="0" src="/PopupNoteContents.php?sNote=&bNoteIsURL=0&sType=Info&sHeading=Note&bAllowMove=0&id=PopupNote_IFrameHostInfoNote" scrolling="no" style="display:none; padding : -1em; border: 0px outset #000000; z-index:9999;position:absolute;left:0px;top:0px;width:262px;">
<script type="text/javascript">
<table id="CSPageHeader" width="100%" border="0" style="display: none;">
<p> </p>
<form id="ticket_detail" method="post" name="ticket_detail">
<input type="hidden" value="0" name="deleteLock">
<input type="hidden" value="" name="mode">
<input type="hidden" value="desc" name="sort">
<input type="hidden" value="d6761ab1fbf9aafd71059ff046d74203" name="SessionKey">
<input id="include_files" type="hidden" value="0" name="include_files">
<input id="work_timer_flag" type="hidden" value="0">
<input id="ticket_num" type="hidden" value="1186" name="ticket_num">
<input id="1186_old_status" type="hidden" value="11" name="1186_old_status">
<input id="new_status" type="hidden" value="11" name="new_status">
<input id="1186_old_cause_code" type="hidden" value="" name="1186_old_cause_code">
<input id="new_cause_code" type="hidden" value="" name="new_cause_code">
<input type="hidden" value="on" name="old_notify_radio">
<input id="1186_old_case_severity_id" type="hidden" value="3" name="1186_old_case_severity_id">
<input id="new_case_severity_id" type="hidden" value="3" name="new_case_severity_id">
<input id="1186_old_priority" type="hidden" value="3" name="1186_old_priority">
<input id="new_priority" type="hidden" value="3" name="new_priority">
<input id="1186_old_category_str" type="hidden" value="1" name="1186_old_category_str">
<input id="category_str" type="hidden" value="1" name="category_str">
<input id="new_category_str" type="hidden" value="1" name="new_category_str">
<input id="1186_old_assigned" type="hidden" value="370" name="1186_old_assigned">
<input id="new_assigned" type="hidden" value="370" name="new_assigned">
<input id="1186_old_workflow" type="hidden" value="0" name="1186_old_workflow">
<input id="new_workflow" type="hidden" value="0" name="new_workflow">
<input id="1186_old_vendor_tkt" type="hidden" value="" name="1186_old_vendor_tkt">
<input id="new_vendor_tkt" type="hidden" value="" name="new_vendor_tkt">
<input id="1186_old_notify_value" type="hidden" value="on" name="1186_old_notify_value">
<input id="1186_old_visible_description" type="hidden" value="test case" name="1186_old_visible_description">
<input id="new_visible_description" type="hidden" value="test case" name="new_visible_description">
<input id="1186_old_ticket_type_id" type="hidden" value="1" name="1186_old_ticket_type_id">
<input id="new_ticket_type_id" type="hidden" value="1" name="new_ticket_type_id">
<input id="1186_old_netlog_tt_number" type="hidden" value="" name="1186_old_netlog_tt_number">
<input id="new_netlog_tt_number" type="hidden" value="" name="new_netlog_tt_number">
<input id="1186_old_netlog_carrier_id" type="hidden" value="0" name="1186_old_netlog_carrier_id">
<input id="new_netlog_carrier_id" type="hidden" value="0" name="new_netlog_carrier_id">
<input id="1186_old_netlog_carrier_ticket" type="hidden" value="" name="1186_old_netlog_carrier_ticket">
<input id="new_netlog_carrier_ticket" type="hidden" value="" name="new_netlog_carrier_ticket">
<input id="1186_old_netlog_resolution_id" type="hidden" value="0" name="1186_old_netlog_resolution_id">
<input id="new_netlog_resolution_id" type="hidden" value="0" name="new_netlog_resolution_id">
<input id="1186_old_remote_ticket_num" type="hidden" value="0" name="1186_old_remote_ticket_num">
<input id="new_remote_ticket_num" type="hidden" value="0" name="new_remote_ticket_num">
<input id="1186_old_remote_server_info_id" type="hidden" value="0" name="1186_old_remote_server_info_id">
<input id="new_remote_server_info_id" type="hidden" value="0" name="new_remote_server_info_id">
<input id="1186_old_responsible_party" type="hidden" value="" name="1186_old_responsible_party">
<input id="new_responsible_party" type="hidden" value="-1" name="new_responsible_party">
<input id="1186_old_resolution_code" type="hidden" value="" name="1186_old_resolution_code">
<input id="new_resolution_code" type="hidden" value="-1" name="new_resolution_code">
<table class="table" cellpadding="4" border="1">
<tbody>
<tr>
<td class="TableFormLabel">Name:</td>
<td class="TableFormInput" colspan="4">
<font face="arial,helvetica" size="+1">test case </font>
</td>
<td class="TableFormInput" align="center">
</tr>
<tr>
<tr>
<tr id="cause_code_row" style="display: none;">
pls help.
I have added the code above.

You need to run the script on the page that's loaded in the frame.
// #include YourPage
// #include IframedPage
if(window.location===IframedPage){
//Your code here...
}
If you need to pass info back and forth use GM_setValue or the equivalent.

Related

How do I add extra "values" to a PayPal button

I have the following code, which works fine as is. It shows the price at checkout, but I also need it to include a size in the description. How do I add this extra value please?
EDIT: Also, would need to add different shipping costs depending on which size is ordered.
<form id="for-sale-form" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin: 0px;">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="paypal#your-web-domain.com">
<input type="hidden" name="item_name" value="<?php echo $artwork; ?>">
<input type="hidden" name="custom" value="">
<input type="hidden" name="return" value="http://your-web-domain.com/thanks-payment.htm">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="quanity" value="1">
<input type="hidden" name="add" value="1">
<select name="amount">
<option value="499.99">Large £499.99</option>
<option value="49.99">Medium £49.99</option>
<option value="4.99">Small £4.99</option>
</select><br>
<input name="bn" type="hidden" value="PP-BuyNowBF">
<input type="hidden" name="add" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="image" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" alt="Add to Cart">
<img alt="" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>

Add more references input reference in html

I would like to use one input field that is referenced by multiple forms on one page. or I would like to use <input form="form1,form2,form3,form4" type="text" name="name" required autocomplete="off"/><br> or call the input field every time i submit each of the forms
<table align="center">
<tr>
<td colspan="5" align="center">Group Name:
<input form="form1,form2,form3,form4" type="text" name="name" required autocomplete="off"/><br>
</td>
</tr>
<tr>
<td>
<form id="form1" action="plan.php" method="post">
<input type="hidden" name="number" value="0"><br>
<input type="hidden" name="priceplan" value="25"><br><br>
<input type="submit" value="10 PAX" style="width:100%; margin-top:0px;" class="button">
</form>
</td>
<td>
<form id="form2" action="plan.php" method="post">
<input type="hidden" name="number" value="0"><br>
<input type="hidden" name="priceplan" value="2"><br><br>
<input type="submit" value="10 People" style="width:100%; margin-top:0px;" class="button">
</form>
</td>
<td>
<form id="form3" action="plan.php" method="post">
<input type="hidden" name="number" value="0"><br>
<input type="hidden" name="priceplan" value="3"><br><br>
<input type="submit" value="20 People" style="width:100%; margin-top:0px;" class="button">
</form>
</td>
<td>
<form id="form4" action="plan.php" method="post">
<input type="hidden" name="number" value="0"><br>
<input type="hidden" name="priceplan" value="4"><br><br>
<input type="submit" value="30 People" style="width:100%; margin-top:0px;" class="button">
</form>
</td>
<td>
<form id="form5" action="plan.php" method="post">
<input type="hidden" name="number" value="0"><br>
<input type="hidden" name="priceplan" value="5"><br><br>
<input type="submit" value="40 People" style="width:100%; margin-top:0px;" class="button">
</form>
</td>
</tr>
</table>
I would like to use <input form="form1,form2,form3,form4" type="text" name="name" required autocomplete="off"/><br> or call the input field every time i submit each of the forms
You can achieve this using Javacsript here is an example using jQuery:
first you give ur unique input an ID (id="uniqueInput")
then on the submit you append it to the form
$('form').submit(function(e){
e.preventDefault();
$('<input>').attr({
type: 'hidden',
id: 'foo',
name: 'bar',
value: $('#uniqueInput').val()
}).appendTo($(this));
})

Make paypal form buy now form wider

Im trying to make a buy it now form with paypal. I cannot figure out how to widen a text input field.
This is my code currently:
<h1>Simply fill in the info below</h1>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="277G8E79U9AX6">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="One week of Animal Photos">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="7.95">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<table>
<tr><td><input style="width: 300px;" type="hidden" name="on0" value="Your Email">Your Email</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
<tr><td><input style="width: 600px; height = 200px;" type="hidden" name="on1" value="Address of Recipient">Address of Recipient</td></tr><tr><td><input type="text" name="os1" maxlength="300"></td></tr>
</table>
<tr><td><input style="width: 600px; height = 200px;" type="hidden" name="on2" value="Message">Message</td></tr><tr><td><input type="text" name="os2" maxlength="300"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
I tried adding a style = "width:300px" or simply width: "300px" but it doesn't reflect it.
You are styling the wrong inputs, look for the ones that doesn't have:
type="hidden"
And go for the ones that has type="text". Here is a version of it I made from your code:
<h1>Simply fill in the info below</h1>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="277G8E79U9AX6">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="One week of Animal Photos">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="7.95">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<table>
<tr><td><input style="width: 300px;" type="hidden" name="on0" value="Your Email">Your Email</td></tr><tr><td><input type="text" name="os0" maxlength="200" style="width: 500px;"></td></tr>
<tr><td><input style="width: 600px; height = 200px;" type="hidden" name="on1" value="Address of Recipient">Address of Recipient</td></tr><tr><td><input type="text" name="os1" maxlength="300" style="width: 500px;"></td></tr>
</table>
<tr><td><input style="width: 600px; height = 200px;" type="hidden" name="on2" value="Message">Message</td></tr><tr><td><input type="text" name="os2" maxlength="300" style="width: 500px;"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
I hope it help, just in case, here is a pen: Pen
Use this and do style width in input.
<style>
input:focus::placeholder {
color: transparent;
margin-bottom: 0px;
}
</style>

Iframe- thankyoupage

Hi I have problem with open thankyoupage in new tab. How I can fix it please ? Because When I use iframe plugin that I must use it only open in iframe window. THANKS
I have this HTML code :
<div id="sideOpt">
<form method="post" name="email" action="http://www.gogvo.com/subscribe.php">
<div>
<input id="sideInput" type="email" name="Email" onblur="javascript: if(this.value==''){this.value='Vložte Vaši Emailovou Adresu';}" onfocus="javascript:this.value=''" value="Vložte Vaši Emailovou Adresu" title="Vložte Vaši Emailovou Adresu">
<input id="sideSend" type="submit" value="">
</div>
<div>
<input type="hidden" name="Campaign" value="8e89d34ffa27" />
<input type="hidden" name="AffiliateName" value="ErikPiovarci" />
<input type="hidden" name="ThankyouPage" value="http://www.simplemoneysystem.cz/rs/APkKib" />
<input type="hidden" name="OptIn" value="" />
<input type="hidden" name="FirstName" value="Odběratel">
<input type="hidden" name="AL" value="1">
<input type="hidden" name="LS" value="10">
</div>
</form>
Add target="_blank" to your form tag.
<form method="post" name="email" target="_blank" action="http://www.gogvo.com/subscribe.php">

Paypal buy it now button not doing anything

Im sure this is obvious but I can't seem to get the auto-generated paypal code to work with my site. I see no debug errors. The button just does nothing when it is clicked. Any help would be appreciated
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="background_subpages">
<div id="shirtsBG" class="RoundBorder">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="xxxx#gmail.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Green">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<table>
<tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
<option value="Small">Small $11.99 USD</option>
<option value="Medium">Medium $11.99 USD</option>
<option value="Large">Large $11.99 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="Small">
<input type="hidden" name="option_amount0" value="11.99">
<input type="hidden" name="option_select1" value="Medium">
<input type="hidden" name="option_amount1" value="11.99">
<input type="hidden" name="option_select2" value="Large">
<input type="hidden" name="option_amount2" value="11.99">
<input type="hidden" name="option_index" value="0">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
It was because I was using a form within a form. This code in my page load did the trick
if (!IsPostBack)
{ }
else { }
Form.Action = "https://www.paypal.com/cgi-bin/webscr";
Form.Method = "post";