Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
78% Quality Score
Upvotes Received
8
Posts with Upvotes
7
Upvoting Members
7
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
3 Commented Posts
~94.8K People Reached
About Me

Can't seem to take myself seriously

110 Posted Topics

Member Avatar for Jon_7

<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.

Member Avatar for vsmash
0
759
Member Avatar for shivya_1

all the above good advice, also helpful if you paste the $sql value from the error here

Member Avatar for inthewind
0
406
Member Avatar for phphp

$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 …

Member Avatar for diafol
0
205
Member Avatar for Bob_17
Member Avatar for steph_2

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, …

Member Avatar for vsmash
0
445
Member Avatar for koneill
Member Avatar for reminem

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 />'; } }

Member Avatar for Isaac_4
0
376
Member Avatar for janicemurby

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

Member Avatar for diafol
0
169
Member Avatar for Rajyalakshmi_1

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 …

Member Avatar for vsmash
0
90
Member Avatar for Venance_1

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() { …

Member Avatar for vsmash
0
365
Member Avatar for koneill

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 …

Member Avatar for vsmash
0
306
Member Avatar for HibaPro

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 …

Member Avatar for HibaPro
0
245
Member Avatar for Jason_26

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

Member Avatar for vsmash
0
147
Member Avatar for robert.wynter

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 …

Member Avatar for vsmash
0
528
Member Avatar for lithium112

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.

Member Avatar for vsmash
0
224
Member Avatar for koneill

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 …

Member Avatar for vsmash
0
1K
Member Avatar for gunnarflax

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 …

Member Avatar for Zsolt
0
5K
Member Avatar for HoverportMedia

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 …

Member Avatar for vsmash
0
154
Member Avatar for Tinnin

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 …

Member Avatar for Tinnin
0
364
Member Avatar for sourjya
Member Avatar for marse.haka91

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, …

Member Avatar for marse.haka91
0
5K
Member Avatar for chris.immanuel

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 …

Member Avatar for vsmash
0
3K
Member Avatar for sasikrishnasamy

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

Member Avatar for vsmash
0
197
Member Avatar for Teezy7

.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 …

Member Avatar for deceptikon
0
375
Member Avatar for Luckychap

Gzip is a standard; IIS has Dynamic Content Compression feature, under Web Server => Web Server => Performance.

Member Avatar for vsmash
0
163
Member Avatar for diya45

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 …

Member Avatar for vsmash
0
157
Member Avatar for archana.khare.395

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.

Member Avatar for vsmash
0
134
Member Avatar for YA RAMSAMKER
Member Avatar for vsmash
0
82
Member Avatar for grafic.web

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 …

Member Avatar for vsmash
0
2K
Member Avatar for MaddTechwf

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 …

Member Avatar for vsmash
0
3K
Member Avatar for Duki

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....

Member Avatar for vsmash
0
215
Member Avatar for navi17

[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]

Member Avatar for vasile.manda
0
2K
Member Avatar for GrEEfInd

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?

Member Avatar for Noahv11
0
652
Member Avatar for sree.nathudu
Member Avatar for grafic.web

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 …

Member Avatar for vsmash
0
134
Member Avatar for vsmash

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. …

Member Avatar for |-|x
0
182
Member Avatar for darthswift00

<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>

Member Avatar for JorgeM
0
329
Member Avatar for Caveman280

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 …

Member Avatar for Caveman280
0
230
Member Avatar for Revathy Sesha

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 …

Member Avatar for maxsamuel
0
931
Member Avatar for P.manidas
Member Avatar for silverwatersask
Member Avatar for phorce

<p> 1: bla bla bla</p> <p style="border-top:1px solid black;"> 2: bla bla bla</p>

Member Avatar for vsmash
0
141
Member Avatar for gemccllc
Member Avatar for jcarbillon

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.

Member Avatar for vsmash
0
86
Member Avatar for CaffeineCoder

yes. Check your application pool's advanced settings and make sure that Enable 32-Bit Appliations is set to true.

Member Avatar for CaffeineCoder
0
231
Member Avatar for winnzor

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'])); …

Member Avatar for vsmash
0
247
Member Avatar for vsmash

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 …

0
110
Member Avatar for sonyadsouza
Member Avatar for emmyt

Browsers and html5 have changed so that the real filepath is replaced with 'C:\fakepath' for end user security

Member Avatar for G_Waddell
0
145
Member Avatar for rcasinillo_s

The End.