DaveAmour 160 Mmmmmm beer Featured Poster

I'm happy to take a closer look if you want.

If so do I need more code or the above all I need to make it all work?

DaveAmour 160 Mmmmmm beer Featured Poster

How can you tell this is homework? It could be a real business application, I know I'd buy it!

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

I'm having trouble understanding what you need.

Can you post your html and JavaScript for us to see?

DaveAmour 160 Mmmmmm beer Featured Poster

I wrote an article a few years back which might shed some light on this if you can bare to read it as its quite long!

https://www.paxium.co.uk/PublicArticle/Article/497

Just realised you are already cleaning things up so whilst my article may not help its certainly worth reading especially if you have insomnia!

ddanbe commented: Great article +15
DaveAmour 160 Mmmmmm beer Featured Poster

That sounds like a weird one - I can take look if you zip the code and send it over?

DaveAmour 160 Mmmmmm beer Featured Poster

Gribouillis is spot on but I would also move text = text.upper() into your acronym method too - its cleaner that way and more reusable.

DaveAmour 160 Mmmmmm beer Featured Poster

Yep I agree tables are supposed to be used for tabular data but not for page layout/templates etc.

DaveAmour 160 Mmmmmm beer Featured Poster

Ok cool.

DaveAmour 160 Mmmmmm beer Featured Poster

Is cmd.parameters.addwithvalue (":0",receiptID) right - I may be wrong but I thought you used @ rather than : for parameters?

DaveAmour 160 Mmmmmm beer Featured Poster

Is this not working, is there an error message?

DaveAmour 160 Mmmmmm beer Featured Poster

Assuming you are using Windows, you can use Task Manager or process explorer is better

Ctrl + Alt + Del => Start Task Manager

https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

DaveAmour 160 Mmmmmm beer Featured Poster

You want to know what the battery life is or do you want to test that it has the battery life it is supposed to have?

DaveAmour 160 Mmmmmm beer Featured Poster

Oh dear I can see this is going to kick off! Dani keep calm!

DaveAmour 160 Mmmmmm beer Featured Poster

Hi Suzy - As I read your second sentence I thought this needs to be a Singleton and was all geared up to tell you to scrap your original idea and use a Singleton. It seems that you pretty much solved this problem yourself though which is great!

Object orientated design patterns are solutions to common problems which someone else has already solved - often a long time ago and often they have been used and tested and validated for a long time by many developers.

One of the design patterns is a Singleton.

Although yours isn't quite the defined standard, it is indeed a Singleton. In fact there are many ways of coding a singleton which have pros and cons.

If you are serious about C# then design patterns are an absolute must. There are two really famous books on them which are:

http://books.google.co.uk/books/about/Design_Patterns.html?id=6oHuKQe3TjQC&redir_esc=y

http://shop.oreilly.com/product/9780596007126.do

This site is also good:

http://www.dofactory.com/net/design-patterns

And this guy does amazing videos on design patterns but they are in Java. Its easy enough to follow though as its a very simmilar language and its more about how you create objects and make them work together:

https://www.youtube.com/watch?v=vNHpsC5ng_E&list=PLF206E906175C7E07

Hope that helps!

DaveAmour 160 Mmmmmm beer Featured Poster

Try uninstalling Chrome

DaveAmour 160 Mmmmmm beer Featured Poster

Does this help?

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <style>
        .poster
        {
            width: 25%;
            height: 25%;
            position: absolute;
            margin-left: 20px;
            z-index: 0;
        }

        .poster img
        {
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            border-radius: 50%;
            height: 55px;
            width: 55px;
        }

        .poster a:nth-child(1)
        {
            position: relative;
            bottom: -57%;
            left: 33%;
        }

        .poster a:nth-child(2)
        {
            position: relative;
            bottom: -15%;
            right: -6%;
        }

        .poster a:nth-child(3)
        {
            position: relative;
            bottom: 18%;
            left: 10%;
        }

        .poster a:nth-child(4)
        {
            position: relative;
            top: 10%;
            right: -17%;
        }

        .poster a:nth-child(5)
        {
            position: relative;
            top: 55%;
            right: 7%;
        }

        .poster a:nth-child(6)
        {
            position: relative;
            top: -20%;
            right: -40%;
            height: 100px;
            width: 100px;
        }
    </style>
</head>
<body>
    <div class="poster">
        <a href="#"><img src='http://s2.blomedia.pl/gadzetomania.pl/images/2012/08/ceny-logo-2-304166.jpg' alt='' /></a>
        <a href="#"><img src='http://s2.blomedia.pl/gadzetomania.pl/images/2012/08/ceny-logo-2-304166.jpg' alt='' /></a>
        <a href="#"><img src='http://s2.blomedia.pl/gadzetomania.pl/images/2012/08/ceny-logo-2-304166.jpg' alt='' /></a>
        <a href="#"><img src='http://s2.blomedia.pl/gadzetomania.pl/images/2012/08/ceny-logo-2-304166.jpg' alt='' /></a>
        <a href="#"><img src='http://s2.blomedia.pl/gadzetomania.pl/images/2012/08/ceny-logo-2-304166.jpg' alt='' /></a>
        <a href="#"><img src='http://s2.blomedia.pl/gadzetomania.pl/images/2012/08/ceny-logo-2-304166.jpg' alt='' /></a>
    </div>
</body>
</html>
DaveAmour 160 Mmmmmm beer Featured Poster

This is off the top of my head but I think you can assign your window to a variable eg:

var myWin = window.open("add_address.php...

then later I think you can go myWin.close()

DaveAmour 160 Mmmmmm beer Featured Poster

What is a cycle image style? What's the page supposed to look like?

DaveAmour 160 Mmmmmm beer Featured Poster

I would look at CSS using layers and respond to key presses to change the position of the layer.

DaveAmour 160 Mmmmmm beer Featured Poster

Pretty easy with some JavaScript. Can you code in JavaScript?

This site does something simillar - view the source and see how it works.

http://www.katmaid.co.uk/aboutme/gallery

DaveAmour 160 Mmmmmm beer Featured Poster

Ok cool

DaveAmour 160 Mmmmmm beer Featured Poster

"how do we coincide this with the loading of the target page" - I've explained how - do you undersand what it is I am suggesting?

User clicks button
Posts to your page - persist data here
Page is rendered to user with form
Form automatically submits via JavaScript to other page
Otherpage does its stuff and redirects back to you
On final page grab username from however you stored it.

Ok?

DaveAmour 160 Mmmmmm beer Featured Poster

Can you elaborate?

DaveAmour 160 Mmmmmm beer Featured Poster

Ok I see.

How about instead of posting directly to this page, you post to your own page and this then posts to the other page. This has given you an extra trip to your server then you can choose from a multitude of options for persisting data.

The new intermedary page I am suggesting could render a page back to the user with Javascript which makes it post as soon as its loaded. The content of this page could be something sensible to let the user know something is being processed.

Another option is to use ajax. When the user clicks submit, before posting to otherpage, make a call to the server and again choose from your persistence options.

Make sense?

DaveAmour 160 Mmmmmm beer Featured Poster

You wrote:

"I do not redirect to the target page. "OtherPage" while doing its thing reads the hidden target variable from the request object and redirects to the target page."

The last part of this paragraph reads "and redirects to the target page".

Question - how do you redirect to the target page?

If you can't answer this time you will not hear from me again!

DaveAmour 160 Mmmmmm beer Featured Poster

I've read this 4 times now and still don't get it.

Can you reword your question using clearer language - I'm sure your question can't be that difficult to explain!

DaveAmour 160 Mmmmmm beer Featured Poster

"I was thinking I could create a database and the news feeds just draw on that?" - That's typically how this kind of thing works. You can write this yourself or use an off the shelf package. These are called CMS systems which stands for Content Management System

DaveAmour 160 Mmmmmm beer Featured Poster

Hi Chris, hows things in Florida?

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry I wasn't very clear. Let me summarise how I see things.

You have a page with a form which posts to "otherpage"

"otherpage" does some stuff and then "redirects to the target page that I send"

So my questionis how are you redirecting to this target page?

DaveAmour 160 Mmmmmm beer Featured Poster

How is redirection then done to "otherpage"?

DaveAmour 160 Mmmmmm beer Featured Poster

I think My Articles are ones you started where posts are any posts at all.

DaveAmour 160 Mmmmmm beer Featured Poster

Ok cool.

I do MVC all day long so fire away if you have any questions.

DaveAmour 160 Mmmmmm beer Featured Poster

Hmm not sure really.

EF is normally installed via nuget though I think.

Sorry no idea about what else to downloadl.

DaveAmour 160 Mmmmmm beer Featured Poster

Hi Violet

It needs to restore many nuget packages. Do you have nuget installed and setup ok? Mine compiles ok after these have been restored.

DaveAmour 160 Mmmmmm beer Featured Poster
Private Sub Command1_Click()

On Error GoTo ErrHandler
    Dim xlApp As Object
    Dim xlWB As Object

    Set xlApp = CreateObject("Excel.Application")
    xlApp.Visible = True

    Set xlWB = xlApp.Workbooks.Open("c:\MySheet.xls")
    Exit Sub

ErrHandler:
    MsgBox "There is a problem opening that workbook", vbCritical, "Error!"

End Sub
DaveAmour 160 Mmmmmm beer Featured Poster

How are you redirecting to the other page?

Could you put the username in the a cookie?

DaveAmour 160 Mmmmmm beer Featured Poster

If you hit F12 in most browsers you will get some developer functionality. You can click on any element and then it will show you all they styles and where they are coming from etc - very useful for debugging CSS issues.

DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster

Any chance of getting the entire app - zipped maybe?

DaveAmour 160 Mmmmmm beer Featured Poster

Filet Steak and a bottle of Chateux Neuf Du Pape

DaveAmour 160 Mmmmmm beer Featured Poster

Not sure - does any other database code work? If yes then it should be ok.

DaveAmour 160 Mmmmmm beer Featured Poster

You can start by showing us your code!

DaveAmour 160 Mmmmmm beer Featured Poster

One last thing - if it's easy then change your table columns to have no spaces and change them in your code - worth a try if its easy to do.

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry can't think of anything else then.

DaveAmour 160 Mmmmmm beer Featured Poster

The code under the hood will be generating an insert statement and that is where the problem is. Do all of these dsnewrow.Item("Title") match database column names exactly - the spaces may be an issue?

DaveAmour 160 Mmmmmm beer Featured Poster

I don't think so - the error is a syntax error in the insert statement.

Do you have any single apostrophes maybe?

DaveAmour 160 Mmmmmm beer Featured Poster

Your checkboxes have name attribute but need an id as well!

In jquery when you use # that looks for an id, not a name.

id tends to be used client side and name is what goes into postbacks. You can have both.

DaveAmour 160 Mmmmmm beer Featured Poster

Ok let me take a look...

DaveAmour 160 Mmmmmm beer Featured Poster

Is there anything dodgy in any of those text fields?

DaveAmour 160 Mmmmmm beer Featured Poster

Please ignore my suggestion - I misread the quetion and read column instead of row for some reason!