I have found several different methods for doing this online but for some reason i just cant get any of them to work for me, it may be they way im calling them or something but it also might involve my lack of expereince with JS but regardless I have decided to reach out. here is the code i have found and so far is the only code that seems to give me a reaction on my page $(":checkbox").on("change", function(){ var checkboxValues = {}; $(":checkbox").each(function(){ checkboxValues[this.id] = this.checked; }); $.cookie('checkboxValues', checkboxValues, { expires: 7, path: '/' }) } function repopulateCheckboxes(){ …

Member Avatar
Member Avatar
+0 forum 17

I am having an issue at with the browser refresh button. For some reason when I go to a page and click refresh it takes me back to wherever I started. For instance if the user goes to the Home page first then goes to Projects and then clicks refresh it takes the user back home. My website is [URL="http://www.rkara.us"]http://www.rkara.us[/URL] This is my first post on Daniweb, so I apologize if this is in the wrong place. Thanks for any help.

Member Avatar
Member Avatar
+0 forum 5

Hi guys, so i know this question has been asked and answered on the web a million times but it seems that how my page is structured it doesn't seem to submit at all though it does refresh. I think i also need expert input on the structure of my page. this page is a contact_data page which lists names from database in a table. each name in the list can be clicked. when a name is clicked a sort of like a pop up(overlay + dialog) appears like a form for editing or just to view the persons details. …

Member Avatar
+0 forum 0

i've 3 files 1) search-installment.php 2) pay-installment.php 3) update_installment.php first step enter card no into search-installment.php posting value search_cardno to pay-installment.php then updating particular installment row clicking pay button in that row which opens form in modal window after pressing submit button it's updating data in table, but while refreshing the table #example after submit form the data is disappearing from table cells. how to fix this issue. //search-installment.php <?php include 'include/db.php'; include 'include/settings.php'; include 'include/functions.php'; if(!isset($_SESSION['userid']) || $_SESSION['userid'] == ''){ echo '<script type="text/javascript">window.location = "index.php"; </script>'; } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- start: Meta --> <meta charset="utf-8"> …

Member Avatar
Member Avatar
+0 forum 1

OK so I'm using the function SetDlgItemText() to change the text in a static text control of my window. Problem is, when it updates from a longer string to a shorter string ("Sup Y'all" -> "Hi"), the previous, longer string persists leaving "Hip Y'all". However, remaining bit of the old string disappears once I move it out off the screen. I think it has to do something with the entire window not updating properly. Any ideas on how to fix this? thanks

Member Avatar
Member Avatar
+0 forum 1

Hi All, I'm trying to display a postal area on Google Maps API within it's boundaries. I want to do this dynamically so that everytime someone changes the text in a text field (entering a postcode or part of), it checks the postcode and calculates the boundaries then displays them. My current issue is that I cannot get the map to refresh after each keyup. My code is as follows: var map; var postCodePlot; var postCodeBorderCoords = []; function initialize() { //alert("initialize called"); var mapProp = { center: new google.maps.LatLng(51.55777197508853, -0.13395323779611973), zoom:14, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("googleMap"),mapProp); // …

Member Avatar
Member Avatar
+0 forum 2

Hello All, I have a web application with master page. master page has accordian (vertical) menu with favorites section where user can drag menu items dynamically. user has to press 'save' button to save these newly dragged items. My problem is after pressing 'save' button, these control's do not render until I press F5. Is there any way that I could refresh the master page content and render the new controls when 'save' button is clicked. I have tried: page_load(this,null) It doesn't help. Please help. Thank you. Regards hitro

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I'm not sure whether this post belongs here. The thing is that I want to do a Page reload from my java code running on the server. After pressing a button, I wish for the page to do an automatic reload. So, inside the class file, I have this: import com.google.gwt.user.client.Window; ... public class ConfirmPopup extends DynamicPopup { ... final Button ok = new Button("OK"); ok.addClickListener(new ClickListener() { public void onClick(Widget sender) { setUpdating(); updateListener.onClick(null); Window.Location.reload(); } }); ... } So, I have this functionality inside the class. And it works out fine, I've tested it, but it …

Member Avatar
+0 forum 0

I created a search box that accepts XSS attacks: how can perform the page of this search box to be loaded infinitely by inserting ? I am looking forward for your answer Regards

Member Avatar
Member Avatar
+0 forum 2

Hi, I am wondering if there is any easy way to up the frame rate of a pygame program. For example locking the frame rate? I don't know. Thanks in advance! 26BM

Member Avatar
Member Avatar
+0 forum 2

I am having trouble on how will I solve this problem. I want only to refresh the value of listbox after adding a value from textbox using onclick() on an image. <form id="UpdateDetails"> <input type="hidden" name="id"> <input id="adnew" type="text" autocomplete="off" name="addnew" class="xx"> <img id="img" onclick="addnew()" src="images/icons/add-icon.png" style='padding:0 0 0 10px;height:15px;width:15px;cursor:pointer;' title='Add New' /> <span id="checkStatus"></span><br/> <select multiple> <?php $id=$_POST['id']; $sq = mysql_query("SELECT testVal FROM x_file WHERE id='$id'"); while($q = mysql_fetch_array($sq)){ echo "<option value=".$q['testVal'].">".$q['testVal']."</option>"; } ?> </select> </form> <script> function addnew(){ $.ajax({ type: 'post', url: 'addnew.php', data: $('#UpdateDetails').serialize(), success: function (info) { $('#checkStatus').fadeIn(250).css('color', '#017c04').html(info).delay(1000).fadeOut(500); clearInput(); } }); } </script>

Member Avatar
+0 forum 0

Good Day Guys So im having this issue with this site that i develop which is running 24/7 that eats a huge amount of bandwidth every time the page reload every 10sec using META TAG that is affecting our operations specifically our net connection. What i wanna know is if i switch to a AJAX reload would it solved my problem? Hope to hear you're opinion about it so i can made the necessary changes as soon as possible. Thanks Neil

Member Avatar
Member Avatar
+0 forum 3

Does anyone here know how i could modify this java script code which automatically refresh a page due to the time interval you set. I need assistance on how i can modify this code so it refreshes only once when the page is opened, <script> <!-- /* Auto Refresh Page with Time script By JavaScript Kit (javascriptkit.com) Over 200+ free scripts here! */ //enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59 var limit="0:30" if (document.images){ var parselimit=limit.split(":") parselimit=parselimit[0]*60+parselimit[1]*1 } function beginrefresh(){ if (!document.images) return if (parselimit==1) window.location.reload() else{ parselimit-=1 …

Member Avatar
Member Avatar
+0 forum 10

Hello, So I have a PHP page where I can enter my name, address, phone #, etc. I have some of these fields designed to be required information. If I do not enter something in the required fields, then information I have in other fields are lost when I submit the information. For instance let's say "Name", "Address", and "Phone number" are set as required fields, If I were to enter my name and address, but not my phone number and submitted the information, the page would refresh and display "Each field is required", however the fields marked name and …

Member Avatar
Member Avatar
+0 forum 8

HELLO FRIENDS!, i have problem here, i try to show mysql data using dreamweaver, now i already change the sql statement to show data when user choose the data from select list/view and click submit, so thats mean i add 'where my_column = $_POST' and its work, but the problem come when user want to show next data (Recordset Paging) the page will refresh and its wiil become like user is not choosing any data, the table empty, so i think i need to put the table into <div> and refresh the div only when user click submit. someone can …

Member Avatar
Member Avatar
+0 forum 12

I have a JSP with a button. This button is disabled. How can I make the JSP keep on reloading until isCheck becomes true and it will make the button enabled? Here is my javascript: var usbAvailable = <%=CheckUSB.getInstance().getStatus()%>; function confirmSound(){ HyPAS.Sound.confirm(); HyPAS.LED.on(); location.href='ScanJobServlet' } function checkUSB(){ <%response.setHeader("Cache-Control","no-cache");%> if(usbAvailable==false) { document.getElementById('scan').disabled=true; } else { <% response.addHeader("Refresh","5"); %> } } Here is my JSP <body onload="checkUSB()" bgcolor="#eeeeee" style='position:absolute;z-index:0;left:0;top:0;width:100%;height:100%; margin-left: 0px; margin-top: 0px; background-image: url("/scanToRemovableMemory/img/gra_scn_subL_sys.png"); background-repeat: no-repeat; height: 235px; width: 535px' onload="setInnerHTML()"> <div style="height: 278px; width: 432px; background-color: transparent; margin-left: 0px; margin-top: 0px;"> <div style="top: 35px; width: 231px; text-align: left; font-size: 25px; …

Member Avatar
Member Avatar
-1 forum 1

I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code var caption=prompt("Please enter new caption"," "); if (caption!=null) { var link = "?id="+ $(this).parents('.thumbnail').attr('id') + "&c=" + caption; $.post("../photo_c.html"+link); //alert($(this).parents('.thumbnail').attr('id')); $("#loaddiv").slideUp(300).delay(800).fadeIn('3000'); } This should refresh the div but it wont it flashes but the PHP caption that comes from the database wont change even tho the script at photo_c.html is changing it and working, i have been informed to change …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a page MyList.aspx, which is giving me some issues. When the page loads, it loads perfectly. In my master page, on the left side of the page is a menu, and some hyperlink is provided. When i click on the hyperlink in the left pane, the page refreshes (which is same what i want), but the table moves down by an ince or some pixels. The link on the left is provided so that the user can navigate from any page, to the page MyList.aspx. But clicking on the link disrupts the css and the content in …

Member Avatar
Member Avatar
+0 forum 2

Hello, I have a listview wherein when I double click a student another form pops up where i edit the student info. When i click on cancel it goes back to the menu and when i click on the reports i want it to be able to [B]refresh[/B] so that i wont have to close the program again. Thank you for your help. Much appreciated! :D

Member Avatar
Member Avatar
+0 forum 16

Hi All I Have 5 docking Zone in page1.Aspx File ..Now I drop Control window(ascx file) into Docking Zone..Those are Working Well.Now I Want refresh Particular one Ascx File on Page1.aspx and I Dont want page1.aspx refresh.I want Only particular one Ascx file Refresh Among 4 Ascx File. I Tried Using Ajax Ascx file: <asp:UpdatePanel ID="EmployeeInfoUpdatePanel" runat="server"> <ContentTemplate> <table id="TDPropsGrid" runat="server" width="250px" ></table> <asp:Button ID="Cmd_Previous" runat="server" Text="Previous" Width="100px" SkinID="ButtonSkin" /> <asp:Button ID="Cmd_Next" runat="server" Text="Next" Width="100px" SkinID="ButtonSkin" OnClick="Cmd_Next_Click"/> </ContentTemplate> </asp:UpdatePanel> in Aspx File <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"> </asp:ScriptManager> <dx:ASPxDockPanel ID="NewsPanel" runat="server" PanelUID="News" HeaderText="Details Form" Left="820" Top="220" ToolTip="Details Form"> <ContentCollection> <dx:PopupControlContentControl> <widget:News …

Member Avatar
Member Avatar
+0 forum 1

i am working on an application and i need to have an update feature, but when i try to refresh the contents of my datagridview to view the update ive made, the old and updated records kept on stacking. ive already tried the datagridview.datasource = nothing but nothing happened. this is the code ive been using: Private Sub editbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles editbtn.Click Dim res = MessageBox.Show("Do you really want to save these changes?", "Alert!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If (res = DialogResult.Yes) Then dbconnect() Dim sql As New SqlCommand("update productinfotbl set prodname = '" & prodnametbx.Text …

Member Avatar
Member Avatar
+0 forum 2

hi, i am buliding a website as my mini project. problem: when i submit registration form, if the username or email or even both already exist, I have writen the code to check if either of them exist in the database.. and that is working great.. and if the user still submits the form, i redirect the page to some other page where i notify the user for error.. It works great, i show up a div using jquery which displays error on top of everything on the page.. however on refresh, i would again, notify for submitting the form, …

Member Avatar
Member Avatar
+0 forum 2

Not sure what I am doing wrong but let me try to explain my issue. I have a single combobox on my form that I use to load external settings. If I load, lets say, 100 settings in to this combobox then I clear the combobox via Combobox1.items.clear(), then try to reload a different set of settings that has a far less overall count, the combobox will not load the items and the dropdownlist will be massive but blank. NOW, if I load the settings that have far less then clear and load the settings with significantly more settings, then …

Member Avatar
Member Avatar
+0 forum 2

Hello! I'm creating an app where you can open Settings form and choose the background color, etc. This is how it looks like when one clicks on the color settings button: ColorDialog dlg = new ColorDialog(); dlg.Color = Properties.Settings.Default.bgdColor; if (dlg.ShowDialog() == DialogResult.OK) { Properties.Settings.Default.bgdColor = dlg.Color; Properties.Settings.Default.Save(); bgdColorLBL.BackColor = dlg.Color; } What am I supposed to do to apply those settings on every form my application contains?

Member Avatar
Member Avatar
+0 forum 2

Hey there! I am making something related to images... So, Using JavaScript and JQuery $(document).ready(function(){ $.fx.speeds.slow = 2000; $(".Gallery").hide().load("gallery.php").fadeIn("slow"); setInterval(function(){ $(".Gallery").hide().load("gallery.php").fadeIn("slow"); }, 3000) }); In this case I want to refresh the div(.Gallery) but I dont want to load gallery.php, In fact what I want is, Put the gallery.php code in that div and load it every x seconds. It requires load("file here") right? Can it be done with out loading any thing just refreshing that div so it recalls that php code again? Thanks, Waleed.

Member Avatar
Member Avatar
+0 forum 1

i have a php application where users can apply for a bonus. but there is a confirmation page before the bonus redemption code runs. the issue is that in IE, if you hit f5 right after you click the continue button, the confirmation page refreshes while the bonus redemption code had already been triggered by the continue button and actually goes through. but because the user still sees the confirmation page, they would hit the continue button again and now they get an error cause they are already registered. is there a way i can disable the f5 button using …

Member Avatar
Member Avatar
+0 forum 3

Hi Guys, Currently I have a form that load an XML file and populates Text Boxes with certian Values from that XML. I also have an 'Admin' form which accept new values. What I am wanting to do is the following: When the Admin screen is loaded from a button on the main form, populated with new credentials and then the 'Apply Changes' button is pressed. The main form to 'refresh' or 're-load' the connection to the XML to pick up the new values. **Code for Main for Load:** { public partial class Form1 : Form { private XmlDocument smtpDetails; …

Member Avatar
Member Avatar
+0 forum 16

I have a messagebox to display a error message from code behind, when i click ok on the message box, the parent window gets a postback. The parent window consists of Jquery code. Any solution for this issue ?

Member Avatar
Member Avatar
+0 forum 1

Hi, I am new to VB, and still learning. Please help me. I am developing a simple VB application, in Visual Studio 2010, where in we have to enter values in the fields given. I need to add a REFRESH button, which should act like a clr screen command. When i press that button, all the data fields should go back to its default values or the current values should be cleared. And I need to know how to connect this app to Outlook, so that it sends out a mail by fetching the data we entered in the fields.

Member Avatar
Member Avatar
+0 forum 4

Hi I have a question regarding the way my site deals with areas that are generated via Javascript not updating to the latest information when using IE9 but working perfectly on FireFox. I appreciate this may be like looking for a needle in a haystack but I would appreciate some feedback to support my view that there is a problem. If you go to my [home page](http://www.freelanceaccountancy.com) using IE9 and click on the blue 'All' tab next to "Job Listing" that area of the page will "refresh" but data on the left hand side such as posted, category and skills …

Member Avatar
Member Avatar
+0 forum 5

The End.