I want to store my databases only on RAM. I see that in MySQL server I can choose the "MEMORY" engine and the table with be stored only in the RAM. How about MS SQL Server? How can that be done there?
Thank you
I want to store my databases only on RAM. I see that in MySQL server I can choose the "MEMORY" engine and the table with be stored only in the RAM. How about MS SQL Server? How can that be done there?
Thank you
Intresting: Im running 5.5.35 on Ubuntu...
Is 5.6.x stable? Ill upgrade to it if neccesary (as long as it doesnt mess anything up)
Oldest question in the book.
Google says:
SELECT NOW()+ 0;
And a bunch of other things like UNIX_TIMESTAMP() but doing a select on these, it only returns the seconds, not including the miliseconds.
Basically, I need, from MySQL's side the milliseconds. How can I do this?
Im surprised....
There a reason you are pushing social, non Daniweb signups? I would think you would like more people signing up to the site!
Ive seen a lot of sites that you press the login button up float, a jQuery floating window appears where you can user/pass, and it signs you in without losing ANY content or any copying/pasting (this is what I ment by "AJAXy")
IDK, its a lot more modern than c/p to not lose your content...
That was the year Dani copyright the web site, not the current year. All coptright notices are like that.
Are you kidding? You really thought Dani copyrighted the site just last year?
Dani, Im going to do something similar to my site. How did you set it to automatically keep current with the current year? PHP?
Just a quick lookout: Still says 2013 at the bottom.
Why is making a thread (typing it out allowed) and then if I forget to login, it takes me to another page making me lose the entire typing?
Login should be required first before making a thread. Or at least make it AJAXy
Im trying to make a email form where people can visit our site and send us emails.
Since I am not sure if I can add PHP code, lets stick to JS and HTML. I believe I can add JS libraries:
Basically:
Introduce your email address
Dropdown box that you can contact "Sales", "Support", "Other"
Once you select one of these another dropdown box gets enabled with emails avaliable also to pick from that section.
Then subject and message (text only) to send.
Also, Im wondering that once a email is selected, is it possible to show a picture? We have a male support member that is always being confused with a girl so...
Once all this, I should send it out from a "fakemail@domain.com" to forward to whoever sent it. The problem is that when a member of the staff recieves it, he should be able to reply directly to the person who sent it, not have to read the email to replace the "fakemail@domain.com" address.
Also NO DATABASES INVOLVED (just in case someone was thinking about that for the dropdown boxes)
We doubt that this would be allowed due to video content copyright restrictions. However if anyone knows differently, they can chime in.
The video is mine....how can it be because of video content copyright restrictions when its mine on my site?
Can't get it to work on Android..........OS limitation?
Got this:
<script src="http://www.site.com/scripts/swfobject.js">
</script>
<script language="javascript" type="text/javascript">
if(swfobject.hasFlashPlayerVersion("1"))
{
document.write("<iframe width='700' height='418' src='//www.youtube.com/embed/videoseries?list=KJSDFJDSG9823' frameborder='0' allowfullscreen></iframe>");
}
else
{
document.write("<iframe width='700' height='418' src='//www.youtube.com/embed/videoseries?list=KJSDFJDSG9823&html5=1' frameborder='0' allowfullscreen></iframe>");
}
</script>
While it does correctly detect if Flash is installed or not, I cannot view the HTML5 video on iOS and/or Android. Why not?
Hello,
We uploaded some videos in the back to YouTube and they reproduce perfectly on our webpage. The thing is, with mobile becoming more and more intresting, playing them in a HTML5 video player would be more universal.
How can we make this change?
Implemented switchcontent but It semtidoesnt work.
As a standalone page, it works. But when I implement it inside a div as a "pop up div" so to speak, it completely breaks. Im not sure if switchcontent was made for this or not as it takes all the comboboxes and changes them....should I be allowed to control which???
Anyways, I like Google's implementation a lot more, but I cant see to get how to do it. Any ideas?
select distinct Group from employees;
Result:
Marketing*
Engineering
select Name from employees where Group='Marketing'
Result:
Bob Buckland
Tom Grady*
select Email from employees where Group='Marketing' and Name='Tom Grady'
Result:
t@example.com
OK got it. Sorry, it was a simply query but It wasnt coming to my head.
I have a table (employees) like this
ID Name Group Email
1 Bob Buckland Marketing b@example.com
2 George Alaz Engineering g@example.com
3 Tom Grady Marketing t@example.com
4 Mary Jane Engineering m@example.com
Im going to use this in a email form. First a combobox should load all the groups possible. This means it should load 2 groups, Marketing and Engineering
Groups is easy I believe:
select distinct Group from employees;
After selecting that, I should load all the names that are in that group.
Im not sure how to do names:
select Name from employees where=?
The "where" condition is what Im not sure about.
And after, how do I get the email I selected?
Thanks
Im going to retry "switchcontent" I guess but It will change a lot of my code structure and the way Ive thought things out...
Ive also thought about the switchcontent script:
Wouldnt the problem be basically the same? When I dynamically generate the drop down menu, wouldnt the output be "messed up"?
Like I mentioned this is the code I currently have:
var selecthtml='Things: <select name="d" id="d">'
for (var i=0;i<data.length;i++)
{ //start for
var r = data[i];
var n = r[0];
var c = r[1];
if (i==0)
{
selecthtml=selecthtml+'<option value="'+c+' data-image="icons/icon1.png" selected="selected">'+n+'</option>';
}
else
{
selecthtml=selecthtml+'<option value="'+c+' data-image="icons/icon1.png">'+n+'</option>';
}
} //end for
selecthtml=selecthtml+'<option value="Default">Default</option>';
selecthtml=selecthtml+'</select>';
But it generates this:
<option icon1.png"="" icons="" value="c data-image=">n</option>
As you can see with a incorrect order. I imagine it has something to do with the " and the '....but Im not sure how to fix it.
(Sorry I didnt see that this had another page)
Well, sadly, I cant view the code that Google implemented to get a idea on how they did it and mixing this with the switchcontent script is personally a bit confusing to me as I see no relation between the two. Could you clear it up please?
Thank you for all the help
Are you talking about this:
http://i.dailymail.co.uk/i/pix/2013/09/20/article-2426697-181DDB7D00000578-796_306x423.jpg
I mean that looks good and if it is easy to implement (and dynamically I can add things) then great. But I have no clue on how to do it. Also this new design isnt rolled out here yet.
Has anyone read over the library and the private link with the code ???
Thank you
The problem is that the presentation doesnt make sense.
Im selecting a drawing to be shown as a image. Presenting it as a hidden content is kind of strange...
It was not that clear.
http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
using on hover is another idea.
What do you mean? First I would have to load the images in the drop down menus, right?
I sent some of you guys a private link to the site but havent gotten any responses :S
Hello
I want to add fields in the checkout page that my customer can directly add his credit card details, charge him and make the checkout complete all in the same page.
How can I do this? Ive seen it on other pages.
Thank you
Thank you, PMing now...
piers, I actually may not have explained myself correctly but in one of the posts, I do use data-image but since it is dynamic, it incorrectly puts out code.
If someone else wants to look at a live site, I can PM you the link :)
How could I do the pictures?
Sorry John_44 what I ment was a drop down combobox, not navigation menu.
You have a PM :) There you see the resulting of the code not working correctly.
OK I got a live site working :)
I gotta PM it to you though as it is private...
Well, ideas or things you need to help me out :)
Thank you
Any ideas?
Wow this is going to take some tinkering....
From a related to this thread: I have this code:
var selecthtml='Things: <select name="d" id="d">'
for (var i=0;i<data.length;i++)
{ //start for
var r = data[i];
var n = r[0];
var c = r[1];
if (i==0)
{
selecthtml=selecthtml+'<option value="'+c+' data-image="icons/icon1.png" selected="selected">'+n+'</option>';
}
else
{
selecthtml=selecthtml+'<option value="'+c+' data-image="icons/icon1.png">'+n+'</option>';
}
} //end for
selecthtml=selecthtml+'<option value="Default">Default</option>';
selecthtml=selecthtml+'</select>';
This is part of the code; Lets not point out missing ; or commas or somethign missing to actually make this work.
As you can see I have added a data-image parameter. When I load up the page, it gives me a http://testsite.dev/null/icon1.png not found. I have no idea where it gets that null from (well I do from the code below) but ok.
Using Firebug, I discover that the select was dynamically generated the following form:
<option icon1.png"="" icons="" value="c data-image=">n</option>
n is correct but something stranged happpened with the rest. What the hell happened with data-image???
What can be happening?
Well, you could create your own. It's just html and css after all.
I'd liken it to a very fancy hovertip...
I reread this thread and MAYBE was going to show the image with a tooltip but I see comboboxes dont have tooltips...
You can always create a demo page and put that online.
Complicated: The combo is populated from a store website. The only thing I can think of is to make a demo page with what I populate from the store website hardcoded.
Ive been trying with DDNS to put my dev machine online but cant, sorry.
can you put this online so that we can see the page and fiddle around with it, this is going nowhere.
that last comment sounds harsh, so let me clarify by saying that it is hard to help if I can't see what is going on.
Online there is only old code. Im working on this new code on my development box so it isnt online. Port 80 is problably blocked by my ISP so I cant host my development box online...
No. Where'd you get that? It follows the same rules as regular CSS.
OK, I reread and it seems makes the element blend in with HTML code but thats it. Its 821AM so sorry...
You can specify the CSS as an inline style.
I hate web development but AFAIK inline style declares a element style that depends on the previous element style, right?
what I mean is, why not just put code in the success function after the rest of the code?
Well because (this is personal thought), I need it to correct do the AJAX function. The AJAX function/page connects to a MySQL database. If it fails the connection, it shouldnt do this code.....
I may be wrong but...
What is the best way to implement this?
Just out of curiousity, why do you need complete? why not just call a function at the end of the success?
Because I need to be sure that it runs after success and I believe it doesnt do that if I just put code after the end of success...
Still trying ideas but it doesnt work.
Borzoi, I understand your code but the problem is that there can be 1 item o r 999999999 items. I cant declare a style in CSS for each of them.
Also the url is NOT a static URL. It changes names.
Thats the main problem, I think.
You say it is declared the same way, however it is not. Like pritaes has said you are missing a comma before complete.
Did you actually try running my code and see which one gets fired first? We are trying to help and you are not doing the things we are asking which makes it hard to figure out what you are doing wrong.
Are there any errors that come up in the dev toolbar (for which ever browser you are testing in)? Also, again selecthtml variable is being set but not used so it's not going to do anything.
Yup, I ran the code with and without the comma. No error.
Yes, I ran the code and I see that the alert when using the done or complete function fires first before the ajax code (which for testing purposes, I also put a alert)
No errors coming up (Firefox/Firebug). Ignore the selecthtml variable as it is not the point for now in this case.
Thank you for the help :)
Please use my code :) You removed a ";" and Im not sure where it goes or if it changes anything.
Well, you could create your own. It's just html and css after all.
I'd liken it to a very fancy hovertip...
No time, nor knowledge, nor even wanting to do that.
I will try to use the library pritaeas and I found but even that looks a bit complicated: It works good for static images (images you predefine and add) but for dynamic ones I dont know..
Yup, complete is declared just like that but does not work.
I thought the code explained itself, sorry. I get values from a MySQL database and with it make a combobox. From there I want to select the first value THEN that first value (lets say its "Heart") has a image on the server ("Heart.jpg") which it should load. But, since that complicated, I want to show a simple alert first.
The code I posted is a snippet. It works but I cant get the rest to work (show a simple alert)
How would I use those chained events you commented in the code Ive written?
Im using 1.8.3
Shouldn't there be a comma separating success and complete?
Make absolutly no difference at all. With or without comma, the code does the same thing (tested)