- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Can't seem to take myself seriously
110 Posted Topics
Re: <href="page.html" target="namedtab">foo</a> name the target. This will create a new tab named whatever your target is named. Any links naming the same target will always turn up in that tab. Then if you need, onload="this.focus()" to bring the tab to the front. | |
Re: all the above good advice, also helpful if you paste the $sql value from the error here ![]() | |
Re: $query = "SELECT * FROM vouchers where vou_type = 'CP' and date='".$last_date->format('Y-m-d H:i:s')."' and vou_no='".$last_vno."'"; This should sort it, but I've found in my experience that the easiest way to manage dates and timezones in a database with php and javascript is as integers - INT(11) - unix timestamps. Use … ![]() | |
Re: I suggest you use jquery datatables. | |
Re: I'm not sure about the clarity of this question but I'll try to help: 1. All hidden inputs will always post. The only way to prevent it is using javascript; 2. I'm unclear on your explaination - perhaps a static html form example would help, but from what I see, … | |
Re: <option value="availableDate" SELECTED>Publication Date</option> | |
Re: if (isset($_POST['credentials'])){ $myvalue = $_POST['credentials']; foreach ($myvalue as $key => $value){ echo $key." : ".$value.'<br />'; } } if (isset($_POST['game'])){ $myvalue = $_POST['game']; foreach ($myvalue as $key=>$value){ echo $key." : ".$value.'<br />'; } } | |
Re: You should probably use only one sql statement. eg: SELECT id, firstname, surname, (select user_image from user_images where user_id=id and main_image = '1' LIMIT 1) as user_image From user_table... So the image then comes back with the original dataset ![]() | |
Re: There are many ways to upload through the ui. At the back end, you can always convert the image to base64 and use a largetext field. Generally, it's a good idea to post your code as attempted so far if it doesn't work, and someone here can look at it … | |
Re: https://jsfiddle.net/z58cnmh8/ <html><head> <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> </head> <body> <select id="category" name="category"> <option value="men">Men</option> <option value="women">Women</option> <option value="youth">Youth</option> <option value="both">Both</option> </select> <input type="text" id="display" name="display" value="" /> </body> <script type="text/javascript"> var clection = { 'men': 27, 'women': 23, 'youth': 30, 'both': function() { return parseInt(clection.men) + parseInt(clection.women); } } $(document).ready(function() { … | |
Re: Your script is firing but because there are errors, the form submits and you don't see the error. Switch your Preserve log on in your developer tools so you can see errors. Corrected code is below but you can always use a credit card validation library so that visa/mastercard etc … | |
Re: Max security is authentication at the resulting url or at least use the same function that provides available transaction numbers for that user; Medium security would be to use an obfuscated value such as a GUID rather than a transaction number. This would probably mean adding another field to your … | |
Re: They are similar enough that you can learn one, then the other. I learned react first, but I'm more likely to use Angular in production projects. react is developed by Facebook so I lean more toward Angular in production work. No pun intended. http://learnangular2.com/ https://coursetro.com/courses/8/Learn-Angular-2-Development-with-our-Free-Course react: https://www.codecademy.com/learn/react-101 | |
Re: Your DOM is incomplete. As diafol said, but put all your script before end of the body tag. Also, probably better to append DOM with objects rather than strings. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <table> <tr><th>Test 4</th></tr> <tr> <td> Test 4 </td> </tr> <tr> <td> <select id="test"> </select> </td> </tr> </table> <script> var … | |
![]() | Re: As a better security practice, I recommend that your login page is whole and seperate from your SPA so that the user is either anonymous or logged in when the page loads. |
Re: Your card type does not have to be a user-input. It can be figured out from the number: <script type="text/javascript"> function GetCardType(number) { // visa var re = new RegExp("^4"); if (number.match(re) != null) return "Visa"; // Mastercard re = new RegExp("^5[1-5]"); if (number.match(re) != null) return "Mastercard"; // AMEX … | |
Re: you'll need to include jquery to use the above code. it might be that php is setting the cookie path in a particular folder on your site, then the javascript is looking for a cookie with a different path. So when you set your cookie or get your cookie you … | |
Re: It's down to the skill and knowledge of the Author of the template(s), and of course the SEO writing skill of the content Author. Your actual content should not be changed by any template, but the Author of the template needs to be aware of the use of specific tags … | |
Re: First up, you would probably save yourself some work by using var parameters = $("yourformid").serialize(); Second: Your host server php is behaving differently to your local dev so you would probably want to categorise this issue under php rather than js/dhtml. Start debugging by making your validate button submit the … | |
Re: See http://jsfiddle.net/58aQe/1/ Data example should be as follows, but to have effective results, the y keys need to share time intervals so that each city reports a number at the same point in time. [{period:"2014-02-05",Modena:810, Bologna:0, Rimini:0}, {period:"2014-02-09",Modena:0, Bologna: 396, Rimini:0}, {period:"2014-02-10",Modena:0, Bologna:0, Rimini: 380}, {period:"2014-02-10",Modena:0, Bologna: 736, Rimini:0}, {period:"2014-02-12",Modena:0, … | |
Re: What is not working for you? the best way to pass your form variables is to serialize them. eg: var formdata=$("#formid").serialize(); $('.cuttingCheckbox').change(function() { if (this.checked) { $.post('fabProcess.php', data: formdata, function(response){ this.setAttribute("disabled", true) }); } }); ps: in your current code` this.setAttribute("disabled", true),` should have a semicolon after it rather than … | |
Re: SELECT NUM_ID, caller.VCH_NAME as Sendername, user.VCH_NAME AS Receivedusername FROM INBOX INNER JOIN User AS caller ON INBOX.NUM_SEND_CALL_ID= caller.NUM_USER LEFT OUTER JOIN USER ON INBOX.NUM_REC_CAL_ID = User.NUM_USER | |
Re: .net was created early in the century to make it possible for people with traditional programming skills create websites and web applications without needing to learn new languages, scripting and user interface design. This was in response to a massive demand for web development professionals. In contrast, PHP, perl and … | |
Re: Gzip is a standard; IIS has Dynamic Content Compression feature, under Web Server => Web Server => Performance. | |
Re: Return a result from your stored procedure ALTER procedure [dbo].[spadminreg] @UserName nvarchar(50), @Password nvarchar(50), @UserTypeID int, @DepID int, @DesigID int, @emailaddress nvarchar(50), @PhoneNumber nvarchar(50) as declare @success int=0 if NOT EXISTS(SELECT * from Designation where DesigID=@DeigID and DepID=@DepID) begin insert into [Userss](UserName,Password,UserTypeID,DepID,CreateDate,DesigID,Email ,PhoneNumber) values (@UserName,@Password,@UserTypeID,@DepID,GETDATE(),@DesigID,@emailaddress,@PhoneNumber) set @success=1 end select @success … | |
Re: Your button needs to have 'causespostback' flagged to true. If you don't want the whole page to reload, you need to stick the results and button into an update panel. | |
Re: The decision is entirely aesthetic. Neither is better. | |
Re: I did what JorgeM suggested on one of my sites to catch 404's and figure out the best page to send the user, but you can also write a script to generate a set of URL rewrite rules for a web.config file. I have done this on same site but … | |
Re: Not safe because you are using response.write in your functions. The server-side code processes before the render. you should do something like this: function GetEmpFName() result="" Set rsEmp1 = Server.CreateObject("ADODB.Recordset") SQLemp1 = "Select ID, Name_First, Name_Last from tbl_people WHERE active=1 ORDER BY Name_First ASC" rsEmp1.open SQLemp1, conn While Not rsEmp1.EOF … | |
Re: You Cannot open a form within a form: your code says, "@using (Html.BeginForm())" then later says, "<form...." Get rid of your secoond form and use @Html.EditorFor(res.Score) OR Start a new form for each iteration and get rid of the encapsulating @using(Html.BeginForm.... | |
Re: [CODE]<style> body{margin:0 0 0 0;padding:0 0 0 0;} #backgrounddiv{position:absolute;left:0;top:0;width:100%;height:100%;background:black;color:white;z-index:0;} #bodydiv{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;} </style> <body><div id=backgrounddiv><img src="lleft.jpg" width="100%" height="100%" border=0></div><div id=bodydiv>Here is some text. bodydiv is your master wrapper.</div></body> [/CODE] | |
Re: Hey, I'm not a plumber or anything but can anyone tell me how to remove a tird that's blockiing my s-bend without getting my hands dirty? | |
Re: You should probably post the code you have so far... | |
Re: IIS on windows 7 supports more than one website, and would be the least of your problems. It is your home connection to the internet that may or may not limit the amount of websites you can host. Ideally you would have a STATIC IP address so that you can … | |
G'day folks, My sql server 2012 database is plodding along happily with its custom online store. Yesterday it's primary key incremental column jumped from 60681 to 61678 then resumed incrementing by 1. It is now up to 61686 and chugging along again. No apparent harm done but very strange behaviour. … | |
Re: <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false"> <AnonymousTemplate> [ <a href="~/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ] </AnonymousTemplate> <LoggedInTemplate> Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>! [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ] </LoggedInTemplate> </asp:LoginView> | |
Re: Basically there is no need for two versions. all scripts and ui css make a valid attempt to stay up to date in compatibility with latest jquery. First, make sure all your css is in the head block in the same order it currently is - before javascript references; Get … | |
Re: You don't need windows ulitmate Marseline. Your lecturer is a dope. 1. On 64bit machines, you need to make sure that your application pool allows 32bit applications. 2. Make sure that your iis installation in 'turn on and off windows features' has asp ticked under world wide web services->Application Development … | |
Re: Get rid of the runat="server" add language="javascript" | |
Re: declare allText outside the function. | |
Re: <p> 1: bla bla bla</p> <p style="border-top:1px solid black;"> 2: bla bla bla</p> | |
Re: Above info is correct but to simplify it: GEMCCdb.Close should only appear once after Loop | |
Re: 1. you have written the image before specifying the contentType so asp is defaulting to text/html. 2. response.buffer and response.expires should appear first on your page with response.contentType 3. you have no code to handle empty results. | |
Re: yes. Check your application pool's advanced settings and make sure that Enable 32-Bit Appliations is set to true. | |
Re: Get a response from your php code to debug: [CODE]function deletePost(id){ $('.content-num' + id).hide('slow'); $.ajax({ type: "POST", url: "/func/delete.php", data: "id="+ id, success: function(xhr){ alert(xhr.responseText); }, error: function(xhr){ alert(xhr.responseText); } }); alert(id); }[/CODE] Make sure there is a response in your php code [CODE]<? include ("../css/mysql.php"); session_start(); $id = htmlspecialchars(trim($_POST['id'])); … | |
G'day folks, I'm looking for an asp.net alternative to CKeditor excluding Tinymce and the ajaxcontroltoolkit jobbie. And yes, a free one there are any around because I'm doing this jobbie for free. CKeditor 3.6.2 said it had bugfixed the cursor vanishing but it seems that the cursor vanishes still and … | |
Re: Browsers and html5 have changed so that the real filepath is replaced with 'C:\fakepath' for end user security | |
The End.